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