A diffuse light is just a coloured light and handles the diffuse term for lighting.
Opengl point light penetrates walls.
Ambient lighting gives some light to shaded objects which in reality would be due to scattering and diffusion of light shadows are rarely totally black without ambience the scene would be too dark altering global ambience.
Where spotdirection is a field from the ligth state see here lightdir is the vector from the light source to the vertex and spotexp is the spot rate of decay.
Ambient reflection is a gross approximation of multiple reflections from indirect light sources e g the surfaces of walls and tables in a room that reflect off the lights from light sources.
Opengl allows you to set the red green and blue values for each component of light independently.
What this chapter will focus on is the generation of dynamic shadows in all surrounding directions.
For example if you have a white light in a room with red walls the scattered light tends to be red although the light directly striking objects is white.
In addition to specific point lights in precise locations we have global ambience.
This is also provided by the opengl state see here and controls how the lights intensity decays from the center of the cone it its borders the larger the value the faster de decay with zero meaning constant light within the light.
If any part of the cone is on the other side of the wall it will light that area.
Gllight sets the values of individual light source parameters light names the light and is a symbolic name of the form gl light i where i ranges from 0 to the value of gl max lights 1.
That spotlight is on the other side of the wall and while hard soft shadows does mitigate it it doesn t resolve it completely.
Ambient reflection produces a constant illumination on all surface regardless of their orientation.
It basically sets the colour.
This technique is known as point light shadows or more formerly as omnidirectional shadow maps.
Point light a light that gives off equal amounts of light in all directions.
I have an idea to try using a cookie to darken half the cone i hope that takes it the other 30 of the way.
Pname specifies one of ten light source parameters again by symbolic name params is either a single value or a pointer to an array that contains the new values.
An ambient light is a light that lights up the scene from every direction.
The angle at which light from a point light source hits an object is a function of the positions of both the object and the light source.