Fix whitespaces
This commit is contained in:
parent
de5dad1e6e
commit
37da0e40c5
2 changed files with 3 additions and 3 deletions
|
|
@ -23,14 +23,14 @@ export class InvertedTunnel extends Drawable {
|
|||
#ifdef WEBGL2_IS_AVAILABLE
|
||||
float myTerrain(float h) {
|
||||
return texture(
|
||||
noiseTexture,
|
||||
noiseTexture,
|
||||
vec2(h, 0.5)
|
||||
)[0] - 0.5;
|
||||
}
|
||||
#else
|
||||
float myTerrain(float h) {
|
||||
return texture2D(
|
||||
noiseTexture,
|
||||
noiseTexture,
|
||||
vec2(h, 0.5)
|
||||
)[0] - 0.5;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ float terrain(float x) {
|
|||
result += sin(2.0 * pi * x * frequency - 2.0 * pi * noise(float(i) * 200.0)) * amplitude;
|
||||
frequency *= 1.5;
|
||||
amplitude /= 1.2;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue