From b123900b52d9580787252b72725226fbe46887ac Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 15 Aug 2023 16:01:38 +0200 Subject: [PATCH] fixed camera angle: aura and shader projection --- graph.cpp | 2 +- shaders.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graph.cpp b/graph.cpp index 18329210..db87d349 100644 --- a/graph.cpp +++ b/graph.cpp @@ -3421,7 +3421,7 @@ EX void drawaura() { if(!models::camera_straight) { hyperpoint p = hyperpoint(x, y, rad0, 1); - p = pconf.cam() * p; + p = rot_inverse(pconf.cam()) * p; x = p[0] * rad0 / p[2]; y = p[1] * rad0 / p[2]; } diff --git a/shaders.cpp b/shaders.cpp index 4b748fd0..ffd11630 100644 --- a/shaders.cpp +++ b/shaders.cpp @@ -837,7 +837,7 @@ void display_data::set_projection(int ed, ld shift) { } if(!models::camera_straight && pmodel != mdPixel) { - glhr::projection_multiply(glhr::tmtogl_transpose(pconf.cam())); + glhr::projection_multiply(glhr::tmtogl(pconf.cam())); } if(u_alpha) {