Add Vulkan Y-flip to projection matrix and ignore node_modules

Negate projection[1][1] to correct for Vulkan's Y-down NDC convention.
Also add node_modules/ to .gitignore to prevent accidental commits.
This commit is contained in:
Kelsi 2026-02-21 22:05:11 -08:00
parent 4fc3689dcc
commit b012906887
2 changed files with 3 additions and 0 deletions

View file

@ -18,6 +18,8 @@ void Camera::updateViewMatrix() {
void Camera::updateProjectionMatrix() {
projectionMatrix = glm::perspective(glm::radians(fov), aspectRatio, nearPlane, farPlane);
// Vulkan clip-space has Y pointing down; flip the projection's Y axis.
projectionMatrix[1][1] *= -1.0f;
}
glm::vec3 Camera::getForward() const {