From f9592e9a6ecbde45c769d543887541398fbfbda2 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 24 Apr 2013 15:05:43 +0000 Subject: Fix #35063: GLSL texture node Value output was not outputting alpha. --- source/blender/gpu/shaders/gpu_shader_material.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl index 08747b19df2..d9f5d99f950 100644 --- a/source/blender/gpu/shaders/gpu_shader_material.glsl +++ b/source/blender/gpu/shaders/gpu_shader_material.glsl @@ -753,7 +753,7 @@ void texture_wood_sin(vec3 vec, out float value, out vec4 color, out vec3 normal 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); -- cgit v1.2.3