mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed orientation_yz in GL
This commit is contained in:
parent
2121aacaaf
commit
5d9518b9cf
@ -532,10 +532,10 @@ void glapplymatrix(const transmatrix& V) {
|
|||||||
if(vid.stretch != 1) mat[1] *= vid.stretch, mat[5] *= vid.stretch, mat[9] *= vid.stretch, mat[13] *= vid.stretch;
|
if(vid.stretch != 1) mat[1] *= vid.stretch, mat[5] *= vid.stretch, mat[9] *= vid.stretch, mat[13] *= vid.stretch;
|
||||||
|
|
||||||
if(conformal::model_has_orientation()) {
|
if(conformal::model_has_orientation()) {
|
||||||
|
if(DIM == 3) for(int a=0; a<4; a++)
|
||||||
|
conformal::apply_orientation_yz(mat[a*4+1], mat[a*4+2]);
|
||||||
for(int a=0; a<4; a++)
|
for(int a=0; a<4; a++)
|
||||||
conformal::apply_orientation(mat[a*4], mat[a*4+1]);
|
conformal::apply_orientation(mat[a*4], mat[a*4+1]);
|
||||||
if(DIM == 3) for(int a=0; a<4; a++)
|
|
||||||
conformal::apply_orientation_yz(mat[a*4+2], mat[a*4+2]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
glhr::set_modelview(glhr::as_glmatrix(mat));
|
glhr::set_modelview(glhr::as_glmatrix(mat));
|
||||||
|
Loading…
Reference in New Issue
Block a user