digiman
(digiman)
1
I tried turning off shadows but can’t seem to do it.
import Rasterizer
lightsEnabled = Rasterizer.getGLSLMaterialSetting("lights")
Above is the code i used. perhaps i hooked it up incorrectly i hooked up that code to the spotlight and a keyboard sensor, no actuator
digiman
HG1
(HG1)
2
With a “get” function you read out the status from something. If you want to change something you have to use a “set” function.
http://www.tutorialsforblender3d.com/GameModule/RasterizerModule_17.html
Rasterizer.setGLSLMaterialSetting(“shadows”, False)
Edit:
If you want to turn off only one spot then you can change the energy value or remove the spot with endObject.
http://www.tutorialsforblender3d.com/GameModule/ClassKX_Light_5.html
http://www.tutorialsforblender3d.com/GameModule/ClassKX_GameObject_9.html
digiman
(digiman)
3
Actually, after i wrote this i realized i can add and delete a lamp using an empty. Sometimes i get ahead of myself.
digiman