Skip to content

Commit

Permalink
Fix ambiguity regarding the matrix stack (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
RooftopJoe authored Apr 14, 2024
1 parent aadb17f commit fb7b8ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions develop/rendering/basic-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ You can also multiply the top matrix on the stack using quaternions, which we wi
Taking from our example above, we can make our diamond scale up and down by using the `MatrixStack` and the `tickDelta` - which is the time that has passed since the last frame.

::: warning
You must push and pop the matrix stack when you're done with it. If you don't, you'll end up with a broken matrix stack, which will cause rendering issues.
You must first push the matrix stack and then pop it after you're done with it. If you don't, you'll end up with a broken matrix stack, which will cause rendering issues.

Make sure to push the matrix stack before you get a transformation matrix!
:::
Expand All @@ -159,4 +159,4 @@ Let's say we want to rotate our diamond around the z-axis. We can do this by usi

The result of this is the following:

![A video showing the diamond rotating around the z-axis.](/assets/develop/rendering/concepts-quaternions.webp)
![A video showing the diamond rotating around the z-axis.](/assets/develop/rendering/concepts-quaternions.webp)

0 comments on commit fb7b8ac

Please sign in to comment.