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.

Public variables

Color3f emit
The emissive color of the light.