Rebuilt shaders.

This commit is contained in:
bkaradzic 2013-01-20 12:50:59 -08:00
parent c26f8f4718
commit 116efe21b0
3 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ void main()
normalize(v_normal)
);
vec3 normal = texture2D(u_texNormal, v_texcoord0).xy * 2.0 - 1.0;
vec3 normal;
normal.xy = texture2D(u_texNormal, v_texcoord0).xy * 2.0 - 1.0;
normal.z = sqrt(1.0 - dot(normal.xy, normal.xy) );
vec3 view = -normalize(v_view);