stencil translucent non textured polys

This commit is contained in:
Ian Curtis 2016-06-19 23:33:06 +00:00
parent 85c4d85562
commit d058a29ac8

View file

@ -931,7 +931,10 @@ void CNew3D::CacheModel(Model *m, const UINT32 *data)
currentMesh->textureAlpha = ph.TextureAlpha();
currentMesh->polyAlpha = ph.PolyAlpha();
currentMesh->lighting = ph.LightEnabled() && !ph.FixedShading();
currentMesh->layered = ph.Layered();
if (ph.Layered() || (!ph.TexEnabled() && ph.PolyAlpha())) {
currentMesh->layered = true;
}
if (currentMesh->lighting) {
if (ph.SpecularEnabled()) {