mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-27 16:23:08 +00:00
2D3D:: wall shadows
This commit is contained in:
1 parent
8858b137b5
commit
740cc5fbb6
4 files changed
+31
-1
No files matched your search
+12
@@ -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