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.

Reply via email to