fix LocalToWorld vertex buffer attribute names

This commit is contained in:
Carter Anderson 2020-03-22 01:13:45 -07:00
parent cfc7aae413
commit 8c201dcbc5

View File

@ -23,28 +23,28 @@ static VERTEX_BUFFER_DESCRIPTOR: Lazy<VertexBufferDescriptor> =
Lazy::new(|| VertexBufferDescriptor {
attributes: vec![
VertexAttributeDescriptor {
name: "I_Object_Matrix_0".to_string(),
name: "I_Object_Model_0".to_string(),
format: VertexFormat::Float4,
offset: 0,
shader_location: 0,
},
VertexAttributeDescriptor {
name: "I_Object_Matrix_1".to_string(),
name: "I_Object_Model_1".to_string(),
format: VertexFormat::Float4,
offset: 16,
shader_location: 0,
shader_location: 1,
},
VertexAttributeDescriptor {
name: "I_Object_Matrix_2".to_string(),
name: "I_Object_Model_2".to_string(),
format: VertexFormat::Float4,
offset: 32,
shader_location: 0,
shader_location: 2,
},
VertexAttributeDescriptor {
name: "I_Object_Matrix_3".to_string(),
name: "I_Object_Model_3".to_string(),
format: VertexFormat::Float4,
offset: 48,
shader_location: 0,
shader_location: 3,
},
],
name: "Object".to_string(),