Fix typo in ge shaders
This commit is contained in:
parent
11a168b4bf
commit
5424d4fe77
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
int offset = u_object_buffer.m_objects[gl_InstanceIndex].m_skinning_offest;
|
int offset = u_object_buffer.m_objects[gl_InstanceIndex].m_skinning_offset;
|
||||||
mat4 joint_matrix =
|
mat4 joint_matrix =
|
||||||
v_weight[0] * u_skinning_matrices.m_mat[max(v_joint[0] + offset, 0)] +
|
v_weight[0] * u_skinning_matrices.m_mat[max(v_joint[0] + offset, 0)] +
|
||||||
v_weight[1] * u_skinning_matrices.m_mat[max(v_joint[1] + offset, 0)] +
|
v_weight[1] * u_skinning_matrices.m_mat[max(v_joint[1] + offset, 0)] +
|
||||||
|
@ -15,7 +15,7 @@ struct ObjectData
|
|||||||
vec4 m_rotation;
|
vec4 m_rotation;
|
||||||
vec3 m_scale;
|
vec3 m_scale;
|
||||||
uint m_custom_vertex_color;
|
uint m_custom_vertex_color;
|
||||||
int m_skinning_offest;
|
int m_skinning_offset;
|
||||||
int m_material_id;
|
int m_material_id;
|
||||||
vec2 m_texture_trans;
|
vec2 m_texture_trans;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user