mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
from @rextimmy: shifts sybox rendering to last (kils a bit of overdraw)
This commit is contained in:
parent
c64aee9dcc
commit
518bcaaabf
4 changed files with 14 additions and 7 deletions
|
|
@ -602,6 +602,7 @@ void SkyBox::_initMaterial()
|
|||
desc.setCullMode( GFXCullNone );
|
||||
desc.setBlend( true );
|
||||
desc.setZReadWrite( true, false );
|
||||
desc.zFunc = GFXCmpLessEqual;
|
||||
mMatInstance->addStateBlockDesc( desc );
|
||||
|
||||
// Also disable lighting on the skybox material by default.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue