lightning help

hi. Im pretty new to openGL and i think so far its great.

but i dont seem to get the light position right.

example : when i rotate an object lets say 90 deg. the light follows it so the dark sida of the object is on the wrong side.

probebly some easy thing i missed. but i cant find it.

please help.

(sorry for the spelling)

sorry… i found it