mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro.
This commit is contained in:
parent
378a933894
commit
acb192e2a5
133 changed files with 1716 additions and 2087 deletions
|
|
@ -34,6 +34,7 @@
|
|||
#include "materials/materialManager.h"
|
||||
#include "math/util/sphereMesh.h"
|
||||
#include "console/consoleTypes.h"
|
||||
#include "console/engineAPI.h"
|
||||
#include "scene/sceneRenderState.h"
|
||||
|
||||
|
||||
|
|
@ -640,7 +641,7 @@ LightShadowMap* AdvancedLightManager::findShadowMapForObject( SimObject *object
|
|||
return sceneLight->getLight()->getExtended<ShadowMapParams>()->getShadowMap();
|
||||
}
|
||||
|
||||
ConsoleFunction( setShadowVizLight, const char*, 2, 2, "" )
|
||||
DefineConsoleFunction( setShadowVizLight, const char*, (const char* name), (""), "")
|
||||
{
|
||||
static const String DebugTargetName( "AL_ShadowVizTexture" );
|
||||
|
||||
|
|
@ -653,7 +654,7 @@ ConsoleFunction( setShadowVizLight, const char*, 2, 2, "" )
|
|||
return 0;
|
||||
|
||||
SimObject *object;
|
||||
Sim::findObject( argv[1], object );
|
||||
Sim::findObject( name, object );
|
||||
LightShadowMap *lightShadowMap = lm->findShadowMapForObject( object );
|
||||
if ( !lightShadowMap || !lightShadowMap->getTexture() )
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue