1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-12 10:20:32 +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; return tmp;
} }
#if HDR EX ld vnear_default = 1e-3;
constexpr ld vnear_default = 1e-3; EX ld vfar_default = 1e9;
constexpr ld vfar_default = 1e9;
#endif
EX glmatrix frustum(ld x, ld y, ld vnear IS(vnear_default), ld vfar IS(vfar_default)) { EX glmatrix frustum(ld x, ld y, ld vnear IS(vnear_default), ld vfar IS(vfar_default)) {
GLfloat frustum[16] = { GLfloat frustum[16] = {