Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-11-21 23:39:52 +0300
committerAntony Riakiotakis <kalast@gmail.com>2014-11-21 23:40:23 +0300
commit82aa32c3a99d788f0b9f08869dde3c595ca1554a (patch)
treea4744db1e16d8c0548a548467a8815e2ff8c3ffe /source
parent176705c480851b7390fa2a2727721dcc774f39ed (diff)
Fix leftover f postfix from C code.
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 7098f655d54..867270a6d7a 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -2405,8 +2405,8 @@ void node_tex_environment_mirror_ball(vec3 co, sampler2D ima, out vec4 color)
nco.y -= 1.0;
- float div = 2.0*sqrt(max(-0.5*nco.y, 0.0f));
- if(div > 0.0f)
+ float div = 2.0*sqrt(max(-0.5*nco.y, 0.0));
+ if(div > 0.0)
nco /= div;
float u = 0.5*(nco.x + 1.0);