mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 16:07:55 +00:00
- implemented texture overlay pass for textured dynamic lights.
This commit is contained in:
parent
b90173ed21
commit
d5eb1008a4
2 changed files with 11 additions and 0 deletions
|
@ -448,6 +448,12 @@ void GLFlat::Draw(int pass, bool trans) // trans only has meaning for GLPASS_LIG
|
||||||
case GLPASS_LIGHTTEX_ADDITIVE:
|
case GLPASS_LIGHTTEX_ADDITIVE:
|
||||||
DrawLightsCompat(pass);
|
DrawLightsCompat(pass);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GLPASS_TEXONLY:
|
||||||
|
gl_RenderState.SetMaterial(gltexture, CLAMP_NONE, 0, -1, false);
|
||||||
|
gl_SetPlaneTextureRotation(&plane, gltexture);
|
||||||
|
DrawSubsectors(pass, false, false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -447,5 +447,10 @@ void GLWall::Draw(int pass)
|
||||||
case GLPASS_LIGHTTEX_ADDITIVE:
|
case GLPASS_LIGHTTEX_ADDITIVE:
|
||||||
RenderLightsCompat(pass);
|
RenderLightsCompat(pass);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GLPASS_TEXONLY:
|
||||||
|
gl_RenderState.SetMaterial(gltexture, flags & 3, 0, -1, false);
|
||||||
|
RenderWall(RWF_TEXTURED);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue