sotrh / learn-wgpu

Guide for using gfx-rs's wgpu library.
https://sotrh.github.io/learn-wgpu/
MIT License
1.53k stars 267 forks source link

Improved CameraController code #578

Closed melodycatt closed 1 month ago

melodycatt commented 1 month ago

The tutorial said feel free to improve the code, so I spent a little while making it so you can rotate in all directions (and through that accidentally fixing the bug it mentioned).

By the way I was being spammed with non-fatal errors on my pc and not on my macbook, so I did some research. Seems to be an issue with AMD gpus but it doesn't look like its affecting anything, so maybe you could mention it in the tutorial as a sidenote. Here's an issue on wgpu for it.

melodycatt commented 1 month ago

This actually breaks zooming out and I also need to update the later tutorials will fix later