Arty
Public Member Functions | List of all members
TriangleLight Class Reference

Triangle light source, useful to represent area lights made of meshes. More...

#include <lights.h>

Inheritance diagram for TriangleLight:
Light

Public Member Functions

 TriangleLight (const float3 &v0, const float3 &v1, const float3 &v2, const rgb &c)
 
DirectLightingSample sample_direct (const float3 &from, Sampler &sampler) const override final
 Samples direct illumination from this light source at the given point on a surface.
 
EmissionSample sample_emission (Sampler &sampler) const override final
 Samples the emitting surface of the light.
 
EmissionValue emission (const float3 &dir, float, float) const override final
 Returns the emission of a light source (only for light sources with an area).
 
bool has_area () const override final
 Returns true if the light has an area (i.e. can be hit by a ray).
 

Additional Inherited Members

- Protected Member Functions inherited from Light
EmissionSample make_emission_sample (const float3 &pos, const float3 &dir, const rgb &intensity, float pdf_area, float pdf_dir, float cos) const
 
DirectLightingSample make_direct_sample (const float3 &pos, const rgb &intensity, float pdf_area, float pdf_dir, float cos) const
 

Detailed Description

Triangle light source, useful to represent area lights made of meshes.


The documentation for this class was generated from the following file: