Game Development Community

Turning off shadows for individual shapes?

by David Lancaster · in Torque Game Engine · 04/09/2006 (9:47 pm) · 2 replies

I'm new to Torque and was wondering if there is a dynamic variable or something in torque script which will allow me to turn off shadows for individual dts objects? I have managed to implement animated doors and the shadows slow the game down. I can turn the shadow quality down so all shadows are off but I would still like the player to have a shadow.

Thanks.

David

#1
04/09/2006 (11:25 pm)
In C++ there's a variable called mGenerateShadow that will toggle if dynamic shapes have shadows or not. Just expose that to Torque script and you should be good. Just remember that it needs to be set client side, not server side.
#2
04/10/2006 (12:29 am)
Thanks for the help buddy, I really appreciate it.