Rotate scene 90deg counter-clockwise

This commit is contained in:
Richard Zink committed 2026-10-06 16:44:19 +02:00
1 parent 09f1e9a1cb
commit 0fae15c814
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@
function project(x, y, z) { function project(x, y, z) {
var fov = 800; var fov = 800;
var scale = fov / (fov + z); var scale = fov / (fov + z);
var isoX = (x - y) * 0.5; var isoX = y - x;
var isoY = ((x + y) * 0.5) - z; var isoY = ((x + y) * 0.5) - z;
var sx = isoX * scale + W / 2; var sx = isoX * scale + W / 2;
var sy = isoY * scale + H / 2; var sy = isoY * scale + H / 2;