Skip to content

Commit

Permalink
[BREAKING] Instancing no longer ignores the model matrix (#6883)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky authored Aug 19, 2024
1 parent c7294d8 commit 49ad4e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added examples/assets/models/simple-instancing.glb
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ attribute vec4 instance_line3;
attribute vec4 instance_line4;
mat4 getModelMatrix() {
return mat4(instance_line1, instance_line2, instance_line3, instance_line4);
return matrix_model * mat4(instance_line1, instance_line2, instance_line3, instance_line4);
}
`;

0 comments on commit 49ad4e1

Please sign in to comment.