1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

vnear_default and vfar_default are now changeable

This commit is contained in:
Zeno Rogue 2023-05-15 02:27:27 +02:00
parent 56916e8bc6
commit a9d76c861c

View File

@ -248,10 +248,8 @@ EX glmatrix& as_glmatrix(GLfloat o[16]) {
return tmp;
}
#if HDR
constexpr ld vnear_default = 1e-3;
constexpr ld vfar_default = 1e9;
#endif
EX ld vnear_default = 1e-3;
EX ld vfar_default = 1e9;
EX glmatrix frustum(ld x, ld y, ld vnear IS(vnear_default), ld vfar IS(vfar_default)) {
GLfloat frustum[16] = {