Tweaked polygon offset usage.
Tweaked the values used for glPolygonOffset, as the previous values caused rendering issues with the fire in temple. The new values probably reintroduce decal z-fighting with blood and bulletmarks, but the fire z-fighting was a bigger issue.
This commit is contained in:
parent
0d6d5e545a
commit
4f2d3fe2c3
1 changed files with 5 additions and 2 deletions
|
@ -513,9 +513,12 @@ void D3D_DecalSystem_Setup()
|
||||||
|
|
||||||
pglDepthMask(GL_FALSE);
|
pglDepthMask(GL_FALSE);
|
||||||
|
|
||||||
/* this does stop zfighting with bulletmarks on walls... */
|
/* enable polygon offset to help lessen decal z-fighting... */
|
||||||
pglEnable(GL_POLYGON_OFFSET_FILL);
|
pglEnable(GL_POLYGON_OFFSET_FILL);
|
||||||
pglPolygonOffset(-8.0, -8.0);
|
|
||||||
|
static GLfloat factor = 0.0f;
|
||||||
|
static GLfloat units = -100.0f;
|
||||||
|
pglPolygonOffset(factor, units);
|
||||||
}
|
}
|
||||||
|
|
||||||
void D3D_DecalSystem_End()
|
void D3D_DecalSystem_End()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue