mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Changed u_model uniform to array.
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user