Skip to content

Commit

Permalink
minor addition
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 28, 2024
1 parent a05e1f8 commit 8771b2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webgpu/lessons/webgpu-scene-graphs.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ compute a local matrix in a scene graph. Often, some implementations use
"position" instead of "translation". For this tutorial, I thought it might
be better to use "translation" since it matches what we do in `getMatrix`.
One thing that sticks out above is setting `this.translation`, `this.rotation`
and `this.scale` to `new Float32Array(value)`. The advantage to `Float32Array`
is it has `set` function so we can do `someTRS.translation.set(someNewValue)`.
You can see `getMatrix` computes a matrix by using effectively
```
Expand Down

0 comments on commit 8771b2f

Please sign in to comment.