[Bf-blender-cvs] [fe52935] compositor-2016: GLSL: Fix magic colors being off

Sergey Sharybin noreply at git.blender.org
Wed Jun 8 21:51:20 CEST 2016


Commit: fe52935e7c4882be878d6b01f4fd14ff6d9c0824
Author: Sergey Sharybin
Date:   Mon May 30 10:21:55 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rBfe52935e7c4882be878d6b01f4fd14ff6d9c0824

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