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:
parent
56916e8bc6
commit
a9d76c861c
6
glhr.cpp
6
glhr.cpp
@ -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] = {
|
||||
|
Loading…
Reference in New Issue
Block a user