Hi,
Have you tried light.lookAt(earth.position); ? That might do the trick.

David

On Wed, Sep 9, 2009 at 10:53 AM, claudiul25 <[email protected]> wrote:

>
> i don't seem to understand how directional light works.
>
> i have earth(phongmaterial on it ok ) orbiting the sun (bitmap
> material with glow filter ok) , and the camera is on top, how do i get
> the correct lighting? if i use a directional light at sun position how
> do i rotate it, as the earth rotate, so i can get the real effect? i
> tried light.rotationY, or changing its position but no luck.




-- 
http://www.derschmale.com

Reply via email to