mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-03-10 15:19:43 +00:00
2D3D:: wall shadows
This commit is contained in:
12
shaders.cpp
12
shaders.cpp
@@ -781,5 +781,17 @@ void set_depthtest(bool b) {
|
||||
else glDisable(GL_DEPTH_TEST);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool current_depthwrite;
|
||||
|
||||
void set_depthwrite(bool b) {
|
||||
if(b != current_depthwrite) {
|
||||
current_depthwrite = b;
|
||||
if(b) glDepthMask(GL_TRUE);
|
||||
else glDisable(GL_FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user