mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Changed u_model uniform to array.
This commit is contained in:
parent
9a3e57a8b0
commit
4ab0874d53
32 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue