Fix whitespaces

This commit is contained in:
schmelczerandras 2020-10-04 11:20:57 +02:00
parent de5dad1e6e
commit 37da0e40c5
2 changed files with 3 additions and 3 deletions

View file

@ -23,14 +23,14 @@ export class InvertedTunnel extends Drawable {
#ifdef WEBGL2_IS_AVAILABLE #ifdef WEBGL2_IS_AVAILABLE
float myTerrain(float h) { float myTerrain(float h) {
return texture( return texture(
noiseTexture, noiseTexture,
vec2(h, 0.5) vec2(h, 0.5)
)[0] - 0.5; )[0] - 0.5;
} }
#else #else
float myTerrain(float h) { float myTerrain(float h) {
return texture2D( return texture2D(
noiseTexture, noiseTexture,
vec2(h, 0.5) vec2(h, 0.5)
)[0] - 0.5; )[0] - 0.5;
} }

View file

@ -22,7 +22,7 @@ float terrain(float x) {
result += sin(2.0 * pi * x * frequency - 2.0 * pi * noise(float(i) * 200.0)) * amplitude; result += sin(2.0 * pi * x * frequency - 2.0 * pi * noise(float(i) * 200.0)) * amplitude;
frequency *= 1.5; frequency *= 1.5;
amplitude /= 1.2; amplitude /= 1.2;
} }
return result; return result;
} }