glVertex
5.5.2
|
Blinn-Phong light source. More...
#include <glvertex_light.h>
Public Member Functions | |
void | setDirection (vec3f direction, bool camera_light=true) |
set light direction | |
void | setPosition (vec3f position, bool camera_light=true) |
set light position | |
void | setLightVector (vec4f light, bool camera_light=true) |
set light vector | |
vec3f | getLightVector () const |
get light vector | |
bool | isCameraLight () const |
is the light source a camera light? | |
void | setAmbientColor (vec3f color) |
set ambient light source intensity | |
vec3f | getAmbientColor () const |
get ambient light source intensity | |
void | setDiffuseColor (vec3f color) |
set diffuse light source intensity | |
vec3f | getDiffuseColor () const |
get diffuse light source intensity | |
void | setSpecularColor (vec3f color) |
set specular light source intensity | |
vec3f | getSpecularColor () const |
get specular light source intensity | |
void | setIntensityFalloff (vec3f falloff) |
set intensity falloff | |
vec3f | getIntensityFalloff () const |
get intensity falloff | |
void | setLightSourceParameters (vec3f Ia=vec3f(1), vec3f Id=vec3f(1), vec3f Is=vec3f(1), vec3f falloff=vec3f(1, 0, 0)) |
set the light source parameters | |
void | getLightSourceParameters (vec3f &Ia, vec3f &Id, vec3f &Is, vec3f &falloff) const |
get the light source parameters | |
void | begin () |
activate light source | |
void | end () |
deactivate light source | |
Blinn-Phong light source.