Game Development Community

[RESOLVED] Projectile shape render fix

by Ivan Mandzhukov · in Torque 3D Professional · 10/17/2009 (7:20 am) · 3 replies

projectile.cpp

in prepBatchrender(),after
// Set up our TS render state.
   TSRenderState rdata;
   rdata.setSceneState( state );

add this:
LightManager *lm = gClientSceneGraph->getLightManager();  
   if ( !state->isShadowPass() ) 
      lm->setupLights( this, getWorldSphere() );

#1
10/17/2009 (10:59 am)
What was the issue you'd had trouble with?
#2
10/17/2009 (11:36 am)
The runtime generated shape was not illuminated.
#3
10/17/2009 (11:57 am)
Ah ... I just realised all my projectiles are set to emissive, hence why I hadn't noticed.