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
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-05-20 19:14:04 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-05-20 19:14:04 +0300
commitbff095184a144a3c9ba4414a8ee71e6b1d43fd78 (patch)
treeb8e55bccc360f4edbfc3e8fa1a1cb8dbe6a23968
parentc6ea288bcf98ebe9c14c51b42beebc69632571f3 (diff)
Cleanup: Don't use f suffix for values in GLSL
Was giving an issues in the past, will avoid it for now.
-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 828938914cb..ca0888de535 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -2321,7 +2321,7 @@ float integer_noise(int n)
n = (n + 1013) & 0x7fffffff;
n = (n >> 13) ^ n;
nn = (n * (n * n * 60493 + 19990303) + 1376312589) & 0x7fffffff;
- return 0.5f * (float(nn) / 1073741824.0);
+ return 0.5 * (float(nn) / 1073741824.0);
}
int floor_to_int(float x)
@@ -2858,7 +2858,7 @@ void node_tex_magic(vec3 co, float scale, float distortion, float depth, out vec
z /= distortion;
}
- color = vec4(0.5f - x, 0.5f - y, 0.5f - z, 1.0);
+ color = vec4(0.5 - x, 0.5 - y, 0.f - z, 1.0);
fac = (color.x + color.y + color.z) / 3.0;
}