aboutsummaryrefslogtreecommitdiff
path: root/client/shaders
diff options
context:
space:
mode:
authorRealBadAngel <maciej.kasatkin@o2.pl>2015-06-28 21:11:54 +0200
committerRealBadAngel <maciej.kasatkin@o2.pl>2015-06-28 21:11:54 +0200
commit1455267c9e66f64cd49e01aac782060c95bb925e (patch)
treed2659f6f19aff7e31de26070ef886630ffc73f77 /client/shaders
parent0a90fedabc07a3ba811f13ed8d673136e857ec02 (diff)
downloadminetest-1455267c9e66f64cd49e01aac782060c95bb925e.tar.gz
minetest-1455267c9e66f64cd49e01aac782060c95bb925e.tar.bz2
minetest-1455267c9e66f64cd49e01aac782060c95bb925e.zip
Bugfix: variable type mismatch
Diffstat (limited to 'client/shaders')
-rw-r--r--client/shaders/nodes_shader/opengl_fragment.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/shaders/nodes_shader/opengl_fragment.glsl b/client/shaders/nodes_shader/opengl_fragment.glsl
index 0e84eacf9..e531d72b7 100644
--- a/client/shaders/nodes_shader/opengl_fragment.glsl
+++ b/client/shaders/nodes_shader/opengl_fragment.glsl
@@ -66,7 +66,7 @@ float find_intersection(vec2 dp, vec2 ds)
}
float find_intersectionRGB(vec2 dp, vec2 ds) {
- const float iterations = 24;
+ const float iterations = 24.0;
const float depth_step = 1.0 / iterations;
float depth = 1.0;
for (int i = 0 ; i < iterations ; i++) {