added experimental additional check for shadow active
This commit is contained in:
parent
89aca4882d
commit
a8a6cc3cfa
2 changed files with 2 additions and 2 deletions
|
@ -238,7 +238,7 @@ void GfxOpenGL::startActorDraw(Graphics::Vector3d pos, float yaw, float pitch, f
|
||||||
glEnable(GL_TEXTURE_2D);
|
glEnable(GL_TEXTURE_2D);
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
if (_currentShadowArray) {
|
if (_currentShadowArray && _currentShadowArray->active) {
|
||||||
SectorListType::iterator i = _currentShadowArray->planeList.begin();
|
SectorListType::iterator i = _currentShadowArray->planeList.begin();
|
||||||
Sector *shadowSector = *i;
|
Sector *shadowSector = *i;
|
||||||
glEnable(GL_POLYGON_OFFSET_FILL);
|
glEnable(GL_POLYGON_OFFSET_FILL);
|
||||||
|
|
|
@ -350,7 +350,7 @@ void GfxTinyGL::startActorDraw(Graphics::Vector3d pos, float yaw, float pitch, f
|
||||||
tglEnable(TGL_TEXTURE_2D);
|
tglEnable(TGL_TEXTURE_2D);
|
||||||
tglMatrixMode(TGL_MODELVIEW);
|
tglMatrixMode(TGL_MODELVIEW);
|
||||||
tglPushMatrix();
|
tglPushMatrix();
|
||||||
if (_currentShadowArray) {
|
if (_currentShadowArray && _currentShadowArray->active) {
|
||||||
assert(_currentShadowArray->shadowMask);
|
assert(_currentShadowArray->shadowMask);
|
||||||
//tglSetShadowColor(255, 255, 255);
|
//tglSetShadowColor(255, 255, 255);
|
||||||
tglSetShadowColor(_shadowColorR, _shadowColorG, _shadowColorB);
|
tglSetShadowColor(_shadowColorR, _shadowColorG, _shadowColorB);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue