MobileRT
1.0
A multi platform C++ CPU progressive Ray Tracer.
|
#include <Light.hpp>
Public Member Functions | |
Light ()=delete | |
Light (Material radiance) | |
Light (const Light &light)=delete | |
Light (Light &&light) noexcept=delete | |
virtual | ~Light () |
Light & | operator= (const Light &light)=delete |
Light & | operator= (Light &&light) noexcept=delete |
virtual ::glm::vec3 | getPosition ()=0 |
virtual void | resetSampling ()=0 |
virtual Intersection | intersect (Intersection &&intersection)=0 |
Public Attributes | |
Material | radiance_ {} |
A class which represents a light in the scene.
A light is a primitive which contains a material that emits light (i.e. a source of light).
|
explicitdelete |
|
explicit |
The constructor.
radiance | The material of the light. |
|
delete |
|
deletenoexcept |
|
virtual |
The destructor.
|
pure virtual |
Gets the position of the light.
Implemented in Components::AreaLight, and Components::PointLight.
|
pure virtual |
Determines if a ray intersects this light or not and calculates the intersection point.
intersection | The previous intersection of the ray in the scene. |
|
pure virtual |
Resets the sampling counter.
Implemented in Components::AreaLight, and Components::PointLight.
Material MobileRT::Light::radiance_ {} |