|
| Light () |
|
virtual | ~Light () |
|
virtual void | setPosition (vec3 &v) |
| Set the position for this light, only meaningful for point and spot lights. More...
|
|
virtual void | setDirection (vec3 &v) |
| Set the direction to emit light at, only meaningful for directional and spot lights. More...
|
|
virtual void | setDiffuse (const color &c) |
| Set the diffuse color to emit. More...
|
|
virtual void | setSpecular (const color &c) |
| Set the specular color to reflect. More...
|
|
virtual void | setDirectional () |
| Make this a directional light, illuminating all scene objects in the set direction. More...
|
|
virtual void | setPoint () |
| Make this a point light, illuminating all objects within range as defined by the attenuation settings. More...
|
|
virtual void | setSpotlight (real radsInner, real radsOuter, real falloff=1.0f) |
| Make this a spot light with the given beam angles and falloff values. More...
|
|
virtual void | setAttenuation (real range, real constant=0.0f, real linear=1.0f, real quad=0.0f) |
| Set the attenuation values for spot and point lights. More...
|
|
virtual void | setVisible (bool isVisible) |
| Set whether this light is currently illuminating or not. More...
|
|
virtual bool | isVisible () const |
| Returns true if this light is actively illuminating the scene. More...
|
|
A light represents a point in space which emits light either in all directions or as a spotlight, or a directed light source which illuminates all objects in the scene from one direction.