diff --git a/data/shaders/ge_shaders/spm_skinning.vert b/data/shaders/ge_shaders/spm_skinning.vert index 3039dd350..273f62de2 100644 --- a/data/shaders/ge_shaders/spm_skinning.vert +++ b/data/shaders/ge_shaders/spm_skinning.vert @@ -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)] + diff --git a/data/shaders/ge_shaders/utils/spm_layout.h b/data/shaders/ge_shaders/utils/spm_layout.h index b9192572d..a910b3cfd 100644 --- a/data/shaders/ge_shaders/utils/spm_layout.h +++ b/data/shaders/ge_shaders/utils/spm_layout.h @@ -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; };