1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-29 04:47:41 +00:00

nisot::local_perspective moved to display_data

This commit is contained in:
Zeno Rogue
2019-11-14 17:20:55 +01:00
parent 0f84ec8dc8
commit 3eee611eca
8 changed files with 23 additions and 21 deletions

View File

@@ -817,7 +817,7 @@ EX void cast() {
cell *cs = centerover;
transmatrix T = cview();
if(nonisotropic) T = nisot::local_perspective * T;
if(nonisotropic) T = NLP * T;
T = inverse(T);
virtualRebase(cs, T, true);
@@ -849,7 +849,7 @@ EX void cast() {
GLERR("uniform length");
glUniformMatrix4fv(o->uStart, 1, 0, glhr::tmtogl_transpose3(T).as_array());
if(o->uLP != -1) glUniformMatrix4fv(o->uLP, 1, 0, glhr::tmtogl_transpose3(inverse(nisot::local_perspective)).as_array());
if(o->uLP != -1) glUniformMatrix4fv(o->uLP, 1, 0, glhr::tmtogl_transpose3(inverse(NLP)).as_array());
GLERR("uniform start");
uniform2(o->uStartid, enc(ids[cs], 0));
GLERR("uniform startid");