From 37da0e40c52ed23010acc8126091859feb11fdec Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Sun, 4 Oct 2020 11:20:57 +0200 Subject: [PATCH] Fix whitespaces --- src/drawables/shapes/inverted-tunnel.ts | 4 ++-- src/graphics/rendering/shaders/random-fs-100.glsl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drawables/shapes/inverted-tunnel.ts b/src/drawables/shapes/inverted-tunnel.ts index 18c7cea..94aadd0 100644 --- a/src/drawables/shapes/inverted-tunnel.ts +++ b/src/drawables/shapes/inverted-tunnel.ts @@ -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; } diff --git a/src/graphics/rendering/shaders/random-fs-100.glsl b/src/graphics/rendering/shaders/random-fs-100.glsl index 00fa10e..1021b2d 100644 --- a/src/graphics/rendering/shaders/random-fs-100.glsl +++ b/src/graphics/rendering/shaders/random-fs-100.glsl @@ -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; }