#include <ilight.h>
Inheritance diagram for toxic::ILight:

Public Types | |
| typedef std::vector< IrradianceSample > | IrradianceSampleVector |
Public Member Functions | |
| ILight (bool cast_shadows=true) | |
| m is the object space to world space transformation matrix. | |
| virtual | ~ILight () |
| bool | CastShadows () const |
| This method returns true if the light casts shadows, false otherwise. | |
| virtual const Color3 & | GetPower () const=0 |
| Returns the emission power of this object, expressed in W. | |
| virtual Ray | GeneratePhotonRay (const Context &context) const=0 |
| virtual void | ComputeIrradiance (const Context &context, const Scene *scene, const sheep::Point3 &point, const sheep::Vector3 &geometric_normal, const sheep::Vector3 &shading_normal, const ISurfaceSampler::SampleVector &input, IrradianceSampleVector *output) const=0 |
Protected Attributes | |
| bool | m_cast_shadows |
| Does this light cast shadows? | |
|
|
|
|
|
m is the object space to world space transformation matrix.
Definition at line 28 of file ilight.cpp. |
|
|
|
|
|
This method returns true if the light casts shadows, false otherwise.
|
|
||||||||||||||||||||||||||||||||
|
Computes irradiance due to this light source. The point and the surface normal are both expressed in world space. Implemented in toxic::IAreaLight, toxic::PointLight, and toxic::Sphere. Referenced by toxic::Renderer::compute_direct_illumination(). |
|
|
Implemented in toxic::IAreaLight, and toxic::PointLight. Referenced by toxic::IPhotonTracer::emit_photons(). |
|
|
Returns the emission power of this object, expressed in W.
Implemented in toxic::IAreaLight, and toxic::PointLight. Referenced by toxic::IPhotonTracer::emit_photons(). |
|
|
Does this light cast shadows?
|
1.3.6