DiffuseLight class

A material that emits light equally in all directions from the front side of a surface.

Base classes

class Material
A base class used to represent surface material properties.

Public functions

auto emitted(const Ray3f& ray, const HitInfo& hit) const -> Color3f override
Returns a constant Color3f if the ray hits the surface on the front side.
auto is_emissive() const -> bool override
Return whether or not this Material is emissive.

Public variables

Color3f emit
The emissive color of the light.

Function documentation

bool DiffuseLight::is_emissive() const override

Return whether or not this Material is emissive.

This is primarily used to create a global list of emitters for sampling.