mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 04:53:10 +02:00
Merge pull request #14810 from SamGondelman/skybox
Case 20833: Fix procedural skybox depth testing
This commit is contained in:
commit
10bb637753
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ ProceduralSkybox::ProceduralSkybox() : graphics::Skybox() {
|
||||||
const int8_t STENCIL_BACKGROUND = 0;
|
const int8_t STENCIL_BACKGROUND = 0;
|
||||||
_procedural._opaqueState->setStencilTest(true, 0xFF, gpu::State::StencilTest(STENCIL_BACKGROUND, 0xFF, gpu::EQUAL,
|
_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));
|
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() {
|
bool ProceduralSkybox::empty() {
|
||||||
|
|
Loading…
Reference in a new issue