[Bf-blender-cvs] [0f86a54] master: GLSL: Fix magic colors being off
Sergey Sharybin
noreply at git.blender.org
Mon May 30 10:22:03 CEST 2016
Commit: 0f86a545e7bcee0e52e7dd6dc28bba40308598b1
Author: Sergey Sharybin
Date: Mon May 30 10:21:55 2016 +0200
Branches: master
https://developer.blender.org/rB0f86a545e7bcee0e52e7dd6dc28bba40308598b1
GLSL: Fix magic colors being off
===================================================================
M source/blender/gpu/shaders/gpu_shader_material.glsl
===================================================================
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index c5dc93f..84806e9 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;
}
More information about the Bf-blender-cvs
mailing list