mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
replace new with singletone to fix cannot re-declare object lof file spam
This commit is contained in:
parent
b44a8cf644
commit
c285813540
4 changed files with 9 additions and 9 deletions
|
|
@ -11,7 +11,7 @@ singleton Material(TerrainFX_@)
|
|||
impactSoundId = "0";
|
||||
};
|
||||
|
||||
new TerrainMaterial(@)
|
||||
singleton TerrainMaterial(@)
|
||||
{
|
||||
internalName = "@";
|
||||
diffuseMap = "";
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ singleton shaderData( AL_ShadowVisualizeShader )
|
|||
pixVersion = 2.0;
|
||||
};
|
||||
|
||||
new CustomMaterial( AL_ShadowVisualizeMaterial )
|
||||
singleton CustomMaterial( AL_ShadowVisualizeMaterial )
|
||||
{
|
||||
shader = AL_ShadowVisualizeShader;
|
||||
stateBlock = AL_DepthVisualizeState;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue