19 explicit AreaLight(
const std::string& name =
"AreaLight");
35 void SetRange(
float range) { m_range = range; }
52 Math::Vector3D m_direction{0.0f, -1.0f, 0.0f};
53 float m_range = 10.0f;
55 float m_height = 1.0f;
57 bool m_twoSided =
false;
One light's packed GPU representation, laid out for std140/cbuffer alignment.