R2 Shaders
|
Functions and types related to ambient lighting. More...
Go to the source code of this file.
Data Structures | |
struct | R2_light_ambient_t |
A ambient light type. More... | |
Functions | |
vec3 | R2_lightAmbientTerm (const R2_light_ambient_t light, const vec2 uv) |
Functions and types related to ambient lighting.
Definition in file R2LightAmbient.h.
vec3 R2_lightAmbientTerm | ( | const R2_light_ambient_t | light, |
const vec2 | uv | ||
) |
Calculate the "diffuse" term for a ambient light. "Diffuse" in this case appears to be slight misnomer, because the light is supposed to be providing an ambient term. However, the R2
package treats ambient light as simply low intensity non-directional diffuse light.
light | The light parameters |
uv | The screen position in UV coordinates (used for sampling from the occlusion map) |
Definition at line 29 of file R2LightAmbient.h.