diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-30 11:21:55 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-30 11:22:18 +0300 |
commit | 0f86a545e7bcee0e52e7dd6dc28bba40308598b1 (patch) | |
tree | 88c6d12145a2e53022efbac4bebcf9abf30ac139 /source/blender/gpu/shaders | |
parent | 163e46bbea165fa7224f450780278e5ee13150f2 (diff) |
GLSL: Fix magic colors being off
Diffstat (limited to 'source/blender/gpu/shaders')
-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; } |