Fix #35063: GLSL texture node Value output was not outputting alpha.

This commit is contained in:
Brecht Van Lommel 2013-04-24 15:05:43 +00:00
parent a4f40416f5
commit f9592e9a6e

@ -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);