fix LocalToWorld vertex buffer attribute names
This commit is contained in:
parent
cfc7aae413
commit
8c201dcbc5
@ -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(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user