|
|
I haven't used sunpos.inc, but if you need the position vector of a
translated/rotated point, you can get it with vector functions. For example,
vrotate(<XTrans,YTrans,ZTrans>,<XRot,YRot,ZRot>) returns the new coordinates
of a point <XTrans,YTrans,ZTrans> rotated around the origin by
<XRot,YRot,ZRot>.
Just apply the same translation/rotation as the ones in sunpos and you get the
point you need.
Margus
>
> 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
Post a reply to this message
|
|