You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just finished "Uniform Buffers and 3D Camera" and noticed 2 things that made me wonder if I had made some mistakes:
When creating the winit window, I use with_inner_size to set the window size to PhysicalSize::new(1920, 1080). After implementing the camera, the native application no longer has a skew due to the aspect ratio. However, the WASM variant still does. For reference, I'm using wasm-pack build --target web with plain HTML. Is this expected? If so, how can I resolve it?
I just finished "Uniform Buffers and 3D Camera" and noticed 2 things that made me wonder if I had made some mistakes:
When creating the
winit
window, I usewith_inner_size
to set the window size toPhysicalSize::new(1920, 1080)
. After implementing the camera, the native application no longer has a skew due to the aspect ratio. However, the WASM variant still does. For reference, I'm usingwasm-pack build --target web
with plain HTML. Is this expected? If so, how can I resolve it?My canvas setup:
My
index.html
:The
CameraController
speed is way faster on the native build. Is this simply due to a much faster update cycle?The text was updated successfully, but these errors were encountered: