Light question
Blitz3D Forums/Blitz3D Programming/Light question
| ||
I just tried changing my LightRange light,far# value, and nothing appears to happen. Is this becuse the default light (light=CreateLight() or light=CreateLight(1)) has an infinite range, unlike CreateLight(2) and CreateLight(3)? |
| ||
Yes light type 1 is directional and has infinite range. Your lighting may be maxed out, in which case turn off any lights of type 1 and you should be able to see the effect of any type 2/3 lights then. |
| ||
Thanks Shambler. No, I just want a simple 'sun'. Do I still have to 'PointEntity light' down to my terrain, or is that light omnidirectional? |
| ||
A light of type 2 has a position but no direction, it's like a lightbulb. [edit] it creates light that shines in all directions. If you want a sun then that is what light type 1 is for, unless you want it to fade out that is. |
| ||
Cheers, Shambler. |