mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
from @rextimmy automatically adds a sky feature to skies. (render sorting and orientation. previously required setting in script.)
This commit is contained in:
parent
7bba3ee2de
commit
ed264e4e12
3 changed files with 3 additions and 2 deletions
|
|
@ -608,6 +608,7 @@ void SkyBox::_initMaterial()
|
|||
FeatureSet features = MATMGR->getDefaultFeatures();
|
||||
features.removeFeature( MFT_RTLighting );
|
||||
features.removeFeature( MFT_Visibility );
|
||||
features.addFeature(MFT_SkyBox);
|
||||
|
||||
// Now initialize the material.
|
||||
mMatInstance->init(features, getGFXVertexFormat<GFXVertexPNT>());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue