1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

fixed camera angle: aura and shader projection

This commit is contained in:
Zeno Rogue 2023-08-15 16:01:38 +02:00
parent 37d558944e
commit b123900b52
2 changed files with 2 additions and 2 deletions

View File

@ -3421,7 +3421,7 @@ EX void drawaura() {
if(!models::camera_straight) { if(!models::camera_straight) {
hyperpoint p = hyperpoint(x, y, rad0, 1); hyperpoint p = hyperpoint(x, y, rad0, 1);
p = pconf.cam() * p; p = rot_inverse(pconf.cam()) * p;
x = p[0] * rad0 / p[2]; x = p[0] * rad0 / p[2];
y = p[1] * rad0 / p[2]; y = p[1] * rad0 / p[2];
} }

View File

@ -837,7 +837,7 @@ void display_data::set_projection(int ed, ld shift) {
} }
if(!models::camera_straight && pmodel != mdPixel) { if(!models::camera_straight && pmodel != mdPixel) {
glhr::projection_multiply(glhr::tmtogl_transpose(pconf.cam())); glhr::projection_multiply(glhr::tmtogl(pconf.cam()));
} }
if(u_alpha) { if(u_alpha) {