Fix typo in ge shaders

This commit is contained in:
Benau 2022-09-27 15:21:08 +08:00
parent 11a168b4bf
commit 5424d4fe77
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
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 =
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)] +

View File

@ -15,7 +15,7 @@ struct ObjectData
vec4 m_rotation;
vec3 m_scale;
uint m_custom_vertex_color;
int m_skinning_offest;
int m_skinning_offset;
int m_material_id;
vec2 m_texture_trans;
};