diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-30 11:21:55 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2016-06-08 22:45:40 +0300 |
commit | fe52935e7c4882be878d6b01f4fd14ff6d9c0824 (patch) | |
tree | aeb51334432382d99107bef5cf66dbdd37f7168a | |
parent | cc52c156d8a7483d4867e05dc75754ad40fe8097 (diff) |
GLSL: Fix magic colors being off
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_material.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl index c5dc93fe07a..84806e9f096 100644 --- a/source/blender/gpu/shaders/gpu_shader_material.glsl +++ b/source/blender/gpu/shaders/gpu_shader_material.glsl @@ -2935,7 +2935,7 @@ void node_tex_magic(vec3 co, float scale, float distortion, float depth, out vec z /= distortion; } - color = vec4(0.5 - x, 0.5 - y, 0.f - z, 1.0); + color = vec4(0.5 - x, 0.5 - y, 0.5 - z, 1.0); fac = (color.x + color.y + color.z) / 3.0; } |