- implemented texture overlay pass for textured dynamic lights.

This commit is contained in:
Christoph Oelckers 2016-05-08 22:07:18 +02:00
parent b90173ed21
commit d5eb1008a4
2 changed files with 11 additions and 0 deletions

View file

@ -448,6 +448,12 @@ void GLFlat::Draw(int pass, bool trans) // trans only has meaning for GLPASS_LIG
case GLPASS_LIGHTTEX_ADDITIVE:
DrawLightsCompat(pass);
break;
case GLPASS_TEXONLY:
gl_RenderState.SetMaterial(gltexture, CLAMP_NONE, 0, -1, false);
gl_SetPlaneTextureRotation(&plane, gltexture);
DrawSubsectors(pass, false, false);
}
}

View file

@ -447,5 +447,10 @@ void GLWall::Draw(int pass)
case GLPASS_LIGHTTEX_ADDITIVE:
RenderLightsCompat(pass);
break;
case GLPASS_TEXONLY:
gl_RenderState.SetMaterial(gltexture, flags & 3, 0, -1, false);
RenderWall(RWF_TEXTURED);
break;
}
}