Shaders: Remove unnecessary 'if' statements
authorLars Hofhansl <larsh@apache.org>
Thu, 8 Dec 2016 05:14:18 +0000 (21:14 -0800)
committerparamat <mat.gregory@virginmedia.com>
Sat, 24 Dec 2016 00:22:16 +0000 (00:22 +0000)
commit923a8f1983271f65c80cbbde7c46153ce58560b4
tree61c3d459c9bc6f787d24e103b4ed7f7f8e2a464a
parenta76e7698b21d51594d82e329d3825ee86e653295
Shaders: Remove unnecessary 'if' statements

Pull if GENERATE_NORMALMAPS == 1 into the template to avoid evaluating
it for each fragment.
Remove if (fogDistance != 0.0).
client/shaders/nodes_shader/opengl_fragment.glsl
client/shaders/water_surface_shader/opengl_fragment.glsl
client/shaders/wielded_shader/opengl_fragment.glsl