#include <Light.h>
Definition at line 20 of file Light.h.
Public Member Functions | |
Light () | |
Initializes the light. | |
virtual | ~Light () |
virtual bool | Illuminate (Ray &ray, ColorRGBA &intensity, unsigned int index=0)=0 |
Illuminate the light. The ray will be changed into a ray pointing to the light source, hence we call it shadow ray. | |
virtual unsigned int | GetNumberOfRays () const |
Protected Attributes | |
Scene * | mScene |
The scene the light belongs to. | |
Friends | |
class | Scene |
Light::Light | ( | ) | [inline] |
Illuminate the light. The ray will be changed into a ray pointing to the light source, hence we call it shadow ray.
ray | Here a new ray (shadow ray) will be stored | |
intensity | The intensity of the ray (i.e. color) will be given back here | |
index | Specify index value of the light ray. The value should be in the range [0; GetNumberOfRays). |
Implemented in PointLight, and QuadAreaLight.
unsigned int Light::GetNumberOfRays | ( | ) | const [inline, virtual] |
Return number of rays required to accomplish the shading produced by this light. (i.e. Point light = 1 ray) area light = n rays)
Reimplemented in QuadAreaLight.
Scene* Light::mScene [protected] |
The scene the light belongs to.
Scene* mScene
Definition at line 33 of file Light.h.
Referenced by Scene::AddLight(), and Light().