[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56267] trunk/blender/source/blender/gpu/ shaders/gpu_shader_material.glsl: Fix #35063: GLSL texture node Value output was not outputting alpha.

Brecht Van Lommel brechtvanlommel at pandora.be
Wed Apr 24 17:05:43 CEST 2013


Revision: 56267
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56267
Author:   blendix
Date:     2013-04-24 15:05:43 +0000 (Wed, 24 Apr 2013)
Log Message:
-----------
Fix #35063: GLSL texture node Value output was not outputting alpha.

Modified Paths:
--------------
    trunk/blender/source/blender/gpu/shaders/gpu_shader_material.glsl

Modified: trunk/blender/source/blender/gpu/shaders/gpu_shader_material.glsl
===================================================================
--- trunk/blender/source/blender/gpu/shaders/gpu_shader_material.glsl	2013-04-24 15:05:40 UTC (rev 56266)
+++ trunk/blender/source/blender/gpu/shaders/gpu_shader_material.glsl	2013-04-24 15:05:43 UTC (rev 56267)
@@ -753,7 +753,7 @@
 void texture_image(vec3 vec, sampler2D ima, out float value, out vec4 color, out vec3 normal)
 {
 	color = texture2D(ima, (vec.xy + vec2(1.0, 1.0))*0.5);
-	value = 1.0;
+	value = color.a;
 
 	normal.x = 2.0*(color.r - 0.5);
 	normal.y = 2.0*(0.5 - color.g);




More information about the Bf-blender-cvs mailing list