From f717c9e56d1db5f6a0271b7dccc8ffbb6d6fc7e9 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Wed, 1 Aug 2018 14:07:02 +0100 Subject: [PATCH] Sort out some tabs which snuck into the water shader --- files/shaders/water_fragment.glsl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/files/shaders/water_fragment.glsl b/files/shaders/water_fragment.glsl index 75113755e..ee91df75f 100644 --- a/files/shaders/water_fragment.glsl +++ b/files/shaders/water_fragment.glsl @@ -194,9 +194,9 @@ void main(void) float bump = mix(BUMP,BUMP_RAIN,rainIntensity); vec3 normal = (normal0 * bigWaves.x + normal1 * bigWaves.y + - normal2 * midWaves.x + normal3 * midWaves.y + - normal4 * smallWaves.x + normal5 * smallWaves.y + - rippleAdd); + normal2 * midWaves.x + normal3 * midWaves.y + + normal4 * smallWaves.x + normal5 * smallWaves.y + + rippleAdd); normal = normalize(vec3(normal.x * bump, normal.y * bump, normal.z)); @@ -204,9 +204,9 @@ void main(void) // normal for sunlight scattering vec3 lNormal = (normal0 * bigWaves.x * 0.5 + normal1 * bigWaves.y * 0.5 + - normal2 * midWaves.x * 0.2 + normal3 * midWaves.y * 0.2 + - normal4 * smallWaves.x * 0.1 + normal5 * smallWaves.y * 0.1 + - rippleAdd).xyz; + normal2 * midWaves.x * 0.2 + normal3 * midWaves.y * 0.2 + + normal4 * smallWaves.x * 0.1 + normal5 * smallWaves.y * 0.1 + + rippleAdd).xyz; lNormal = normalize(vec3(lNormal.x * bump, lNormal.y * bump, lNormal.z)); lNormal = vec3(-lNormal.x, -lNormal.y, lNormal.z);