1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-28 04:17:39 +00:00

glhr:: shaderside projection for the half-plane model

This commit is contained in:
Zeno Rogue
2018-11-19 20:52:01 +01:00
parent a282913521
commit e25bc8e455
4 changed files with 32 additions and 12 deletions

View File

@@ -475,7 +475,7 @@ void glapplymatrix(const transmatrix& V) {
}
mat[12] = 0;
mat[13] = 0;
mat[14] = (glhr::current_shader_projection == glhr::shader_projection::standard) ? GLfloat(vid.alpha) : 0;
mat[14] = (glhr::current_shader_projection != glhr::shader_projection::band) ? GLfloat(vid.alpha) : 0;
mat[15] = 1;
if(vid.stretch != 1) mat[1] *= vid.stretch, mat[5] *= vid.stretch, mat[9] *= vid.stretch, mat[13] *= vid.stretch;