mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-28 07:45:40 +00:00
turn zbuffer checks on, account for reverse depth changes
This commit is contained in:
parent
209abf3aa4
commit
d2a1153a49
7 changed files with 13 additions and 20 deletions
|
|
@ -67,9 +67,8 @@ void afxBillboard::_renderBillboard(ObjectRenderInst *ri, SceneRenderState* stat
|
|||
desc.alphaTestRef = 1;
|
||||
desc.alphaTestFunc = GFXCmpGreaterEqual;
|
||||
|
||||
desc.setZReadWrite(true);
|
||||
desc.zFunc = GFXCmpLessEqual;
|
||||
desc.zWriteEnable = false;
|
||||
desc.setZReadWrite(true, false);
|
||||
desc.zFunc = GFXCmpGreaterEqual;
|
||||
|
||||
desc.samplersDefined = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ void afxZodiacPlane::_renderZodiacPlane(ObjectRenderInst *ri, SceneRenderState*
|
|||
desc.setAlphaTest(true, GFXCmpGreater, 0);
|
||||
|
||||
desc.setZReadWrite(true);
|
||||
desc.zFunc = GFXCmpLessEqual;
|
||||
desc.zFunc = GFXCmpGreaterEqual;
|
||||
desc.zWriteEnable = false;
|
||||
desc.samplersDefined = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue