Skip to content

Commit

Permalink
Typo "update_secondary_command_buffers" to "..._buffer"
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuswiles authored and KyleMayes committed Sep 27, 2023
1 parent 675b094 commit 3c606e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorial/book/src/dynamic/secondary_command_buffers.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ unsafe fn update_command_buffer(&mut self, image_index: usize) -> Result<()> {

If you run the program again, you'll see a strange shimmering as the 4 model instances, being rendered at the same coordinates, experience a bad bout of [z-fighting](https://en.wikipedia.org/wiki/Z-fighting).

Update the model matrix calculation in `App::update_secondary_command_buffers` to translate the models before rotating them according to their model index.
Update the model matrix calculation in `App::update_secondary_command_buffer` to translate the models before rotating them according to their model index.

```rust,noplaypen
let y = (((model_index % 2) as f32) * 2.5) - 1.25;
Expand Down

0 comments on commit 3c606e2

Please sign in to comment.