Try to understand what's wrong and fail

This commit is contained in:
2026-01-04 22:45:00 +01:00
parent fed1e982d2
commit 00cfdcd77b
3 changed files with 7 additions and 2 deletions

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"files.exclude":{
"**/.zig-cache": true,
},
}

2
castle

Submodule castle updated: 7e8103565d...e019470687

View File

@@ -781,7 +781,7 @@ fn render(self: *Game) !void {
const camera_xscale = camera_yscale / camera_aspect_ratio;
const matrix_ws_to_vs = vm.Matrix4x4.mulMatrixAffine(
.initRotation(camera_rotation.inverseUnit()),
.initRotation(camera_rotation), // TODO This is wrong - it should be correct when inverted
.initTranslation(camera_position.negate()),
);