|
![](/i/fill.gif) |
>
> I use sunpos.inc for lighting. The position of the sun is calculated in one
> direction and then translated and rotated by an equation. How can I find the
> exact position of the sun for effect_location variable, which is used by the
> popular lnsefcts.inc?
>
> Istvan
Add the following line to sunpos.inc immediately before the #end:
#declare Sunloc = vrotate(<0, 0, 1000000000>, <-Al, Az, 0>;
This will cause the macro to put the Sun's location into the global
variable Sunloc, enabling you to use it as you wish (e.g. #declare
effect_location = Sunloc;) It will not change the function of
sunpos.inc in any other way.
Post a reply to this message
|
![](/i/fill.gif) |