Changed u_model uniform to array.

This commit is contained in:
bkaradzic 2013-04-06 14:16:38 -07:00
parent 9a3e57a8b0
commit 4ab0874d53
32 changed files with 2 additions and 2 deletions

View file

@ -11,6 +11,6 @@ $output v_normal, v_color0
void main()
{
gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0) );
v_normal = mul(u_model, vec4(a_normal, 0.0) ).xyz;
v_normal = mul(u_model[0], vec4(a_normal, 0.0) ).xyz;
v_color0 = a_color0;
}

View file

@ -11,6 +11,6 @@ $output v_world, v_color0
void main()
{
gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0) );
v_world = mul(u_model, vec4(a_position, 1.0) ).xyz;
v_world = mul(u_model[0], vec4(a_position, 1.0) ).xyz;
v_color0 = a_color0;
}