|
R2 Shaders
|
Functions and types related to spherical lighting. More...
#include "R2LightPositional.h"

Go to the source code of this file.
Functions | |
| vec3 | R2_lightSphericalDiffuseLambertTerm (const R2_light_positional_t light, const R2_light_positional_vectors_t v) |
| vec3 | R2_lightSphericalSpecularPhongTerm (const R2_light_positional_t light, const R2_light_positional_vectors_t v, const vec3 specular_color, const float specular_exponent) |
| vec3 | R2_lightSphericalSpecularBlinnPhongTerm (const R2_light_positional_t light, const R2_light_positional_vectors_t v, const vec3 specular_color, const float specular_exponent) |
Functions and types related to spherical lighting.
Definition in file R2LightSpherical.h.
| vec3 R2_lightSphericalDiffuseLambertTerm | ( | const R2_light_positional_t | light, |
| const R2_light_positional_vectors_t | v | ||
| ) |
Calculate the Lambert diffuse term for a spherical light.
| light | The light parameters |
| v | The calculated light vectors |
Definition at line 17 of file R2LightSpherical.h.
| vec3 R2_lightSphericalSpecularBlinnPhongTerm | ( | const R2_light_positional_t | light, |
| const R2_light_positional_vectors_t | v, | ||
| const vec3 | specular_color, | ||
| const float | specular_exponent | ||
| ) |
Calculate the specular Blinn-Phong term for a spherical light
| light | The light parameters |
| v | The calculated light vectors |
| specular_color | The surface specular color |
| specular_exponent | The surface specular exponent |
Definition at line 62 of file R2LightSpherical.h.
| vec3 R2_lightSphericalSpecularPhongTerm | ( | const R2_light_positional_t | light, |
| const R2_light_positional_vectors_t | v, | ||
| const vec3 | specular_color, | ||
| const float | specular_exponent | ||
| ) |
Calculate the specular Phong term for a spherical light
| light | The light parameters |
| v | The calculated light vectors |
| specular_color | The surface specular color |
| specular_exponent | The surface specular exponent |
Definition at line 35 of file R2LightSpherical.h.
1.8.12