Community Forum

How to dark a spot light with function

Forum Overview >> Farming Simulator 2009

CategoryFarming Simulator 2009
Created28.08.2010 09:23


Claudio Accotardi (Unknown) 28.08.2010 09:30
Hi at all,
I have create a spot light into my mod.
This spot light change the color with to press of a key, my problem is to dark the spot light with function:
setLightDiffuseColor(idLight, ColorRed, ColorGreen, ColorBlue);
I have see into Giants Editor is possible to darkness the light but I don't understud how to use the function.
Can you halp me?
Thanks in advance
Best regards


Stefan Geiger - GIANTS Software 28.08.2010 12:17
The brightness of your light is determined by the sum of the r,g and b values.

To make a bright red light, you can use setLightDiffuseColor(idLight, 1, 0, 0);
To make a dark red light, you can use setLightDiffuseColor(idLight, 0.01, 0, 0);


Claudio Accotardi (Unknown) 29.08.2010 09:34
Mr. Stefan
Thanks
Best regards


Note: Log in to post. Create a new account here.