mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 04:42:20 +02:00
fix skybox depth testing
This commit is contained in:
parent
9c8e21ec6b
commit
93e32f1bd5
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ ProceduralSkybox::ProceduralSkybox() : graphics::Skybox() {
|
|||
const int8_t STENCIL_BACKGROUND = 0;
|
||||
_procedural._opaqueState->setStencilTest(true, 0xFF, gpu::State::StencilTest(STENCIL_BACKGROUND, 0xFF, gpu::EQUAL,
|
||||
gpu::State::STENCIL_OP_KEEP, gpu::State::STENCIL_OP_KEEP, gpu::State::STENCIL_OP_KEEP));
|
||||
_procedural._opaqueState->setDepthTest(gpu::State::DepthTest(false));
|
||||
}
|
||||
|
||||
bool ProceduralSkybox::empty() {
|
||||
|
|
Loading…
Reference in a new issue