|Category||Farming Simulator 2009|
|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
|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|
Note: Log in to post. Create a new account here.