Change Position of Light
Posted: 09 Feb 2015, 16:56
Hi,
what is like the best way to change the position of the light source(s)?
I'm using either
or
but nothing seems to happen. Not even when I change those values for all light sources.
Whereas changing the color of the light works perferctly fine with the following line
Any ideas why?
what is like the best way to change the position of the light source(s)?
I'm using either
Code: Select all
F3DN.Navigator3D.Lights[0].Position.Translate(vec4f);
Code: Select all
F3DN.Navigator3D.Lights[0].Translate(80, 80, 80);
Whereas changing the color of the light works perferctly fine with the following line
Code: Select all
diffColor.SetColor(0, 0, 120);
F3DN.Navigator3D.Light[0].Diffuse := diffcolor