[Scummvm-git-logs] scummvm master -> 4bc6b3ad136d56ad06cbd849559ef3aac7567e49
aquadran
noreply at scummvm.org
Wed Nov 24 22:01:18 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
4bc6b3ad13 STARK: Re-add stencil buffer stubs
Commit: 4bc6b3ad136d56ad06cbd849559ef3aac7567e49
https://github.com/scummvm/scummvm/commit/4bc6b3ad136d56ad06cbd849559ef3aac7567e49
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-11-24T23:01:13+01:00
Commit Message:
STARK: Re-add stencil buffer stubs
Changed paths:
engines/stark/gfx/tinygl.cpp
engines/stark/gfx/tinyglactor.cpp
diff --git a/engines/stark/gfx/tinygl.cpp b/engines/stark/gfx/tinygl.cpp
index 6c73528107..5cd7e9480b 100644
--- a/engines/stark/gfx/tinygl.cpp
+++ b/engines/stark/gfx/tinygl.cpp
@@ -156,6 +156,11 @@ void TinyGLDriver::end2DMode() {
void TinyGLDriver::set3DMode() {
tglEnable(TGL_DEPTH_TEST);
tglDepthFunc(TGL_LESS);
+
+ // Stencil test are only used in rendering shadows
+ // They are manually enabled and disabled there
+ //tglStencilFunc(TGL_EQUAL, 0, 0xFF);
+ //tglStencilOp(TGL_KEEP, TGL_KEEP, TGL_INCR);
}
bool TinyGLDriver::computeLightsEnabled() {
diff --git a/engines/stark/gfx/tinyglactor.cpp b/engines/stark/gfx/tinyglactor.cpp
index 144060a8b3..dae8900b20 100644
--- a/engines/stark/gfx/tinyglactor.cpp
+++ b/engines/stark/gfx/tinyglactor.cpp
@@ -257,6 +257,7 @@ void TinyGLActorRenderer::render(const Math::Vector3d &position, float direction
if (drawShadow) {
tglEnable(TGL_BLEND);
+ //tglEnable(TGL_STENCIL_TEST);
tglDisable(TGL_TEXTURE_2D);
tglMatrixMode(TGL_PROJECTION);
@@ -281,6 +282,7 @@ void TinyGLActorRenderer::render(const Math::Vector3d &position, float direction
tglEnable(TGL_TEXTURE_2D);
tglDisable(TGL_BLEND);
+ //tglDisable(TGL_STENCIL_TEST);
}
}
More information about the Scummvm-git-logs
mailing list