From: RealBadAngel Date: Wed, 16 Apr 2014 14:56:54 +0000 (+0200) Subject: Fix invalid liquid lighting. X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=db60ae0459a7711bdaca2dff94c2e87e8e97796d;p=zefram%2Fminetest%2Fminetest_engine.git Fix invalid liquid lighting. --- diff --git a/client/shaders/liquids_shader/opengl_fragment.glsl b/client/shaders/liquids_shader/opengl_fragment.glsl index e4082259..5bc932ad 100644 --- a/client/shaders/liquids_shader/opengl_fragment.glsl +++ b/client/shaders/liquids_shader/opengl_fragment.glsl @@ -91,5 +91,5 @@ vec4 base = texture2D(baseTexture, uv).rgba; float d = max(0.0, min(vPosition.z / fogDistance * 1.5 - 0.6, 1.0)); alpha = mix(alpha, 0.0, d); } - gl_FragColor = vec4(color.rgb, alpha); + gl_FragColor = vec4(col.rgb, alpha); }