mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-27 11:57:40 +00:00
fixed rug shading
This commit is contained in:
2
rug.cpp
2
rug.cpp
@@ -1273,7 +1273,7 @@ EX void drawRugScene() {
|
|||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
|
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
current_display->next_shader_flags = GF_LIGHTFOG | GF_TEXTURE;
|
current_display->next_shader_flags = GF_VARCOLOR | GF_TEXTURE;
|
||||||
glhr::set_depthtest(true);
|
glhr::set_depthtest(true);
|
||||||
glhr::set_depthwrite(true);
|
glhr::set_depthwrite(true);
|
||||||
glDepthFunc(invert_depth ? GL_GREATER : GL_LESS);
|
glDepthFunc(invert_depth ? GL_GREATER : GL_LESS);
|
||||||
|
|||||||
Reference in New Issue
Block a user