Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.12k stars 513 forks source link

Using vec3(0.0, 0.0, 1.0) for "up" in glm::lookAt instead of vec3(0.0, 1.0, 0.0)?? #161

Closed peterdelevoryas closed 4 years ago

peterdelevoryas commented 4 years ago

Hey, am I crazy, or is the up vector typo'd??? I noticed the view was not changing how I expected when I moved the camera along the x-axis, I assume this is the cause? Or is there something else that's making up for this?

Overv commented 4 years ago

Nah, this is correct. I've made the (fairly arbitrary) choice to use the Z axis for up/down in the tutorial.