V-man
05-30-2002, 05:13 PM
Very simple problem here:
I have a scene with a quad. I have 3 light source in *front*.
material_ambient is ZERO
material_diffuse is {0, 0, 1, 1}
material_emission is ZERO
material_specular is {0.2, 0.2, 0.2, 1.0}
global_ambient_light is ZERO
light_ambient is ZERO
light_diffuse is ONE
light_specular is ONE
two_sided_lighting is OFF
local_viewer is ON
When I rotate, to view my quad from the back (not suppose to be lit), it gets lit anyway. Even if I have 1 light, Its gets lit.
Now, it is difficult to see with 1 light, so I screencapture in a image editor and check up on the pixels.
I see (0, 0, 42) sometimes. The other side where the light is looks as expected.
If I use directional light, the back side is BLACK,, as it should be.
What am I missing here?
V-man
I have a scene with a quad. I have 3 light source in *front*.
material_ambient is ZERO
material_diffuse is {0, 0, 1, 1}
material_emission is ZERO
material_specular is {0.2, 0.2, 0.2, 1.0}
global_ambient_light is ZERO
light_ambient is ZERO
light_diffuse is ONE
light_specular is ONE
two_sided_lighting is OFF
local_viewer is ON
When I rotate, to view my quad from the back (not suppose to be lit), it gets lit anyway. Even if I have 1 light, Its gets lit.
Now, it is difficult to see with 1 light, so I screencapture in a image editor and check up on the pixels.
I see (0, 0, 42) sometimes. The other side where the light is looks as expected.
If I use directional light, the back side is BLACK,, as it should be.
What am I missing here?
V-man