The Lighting struct defines the properties of a point light in the scene.
#include <Lighting.h>
Public Member Functions | |
Lighting ()=default | |
Instantiation constructor for the Lighting struct. More... | |
Lighting (const Vec3 &_pointLightOrigin, const Color &_diffuseColor, const Color &_specularColor, const Color &_ambientColor) | |
Instantiation constructor for the Lighting struct. More... | |
Lighting (const Config::BlockHandle &config) | |
Instantiation constructor for the Lighting struct. More... | |
Public Attributes | |
Vec3 | pointLightOrigin |
Color | diffuseColor |
Color | specularColor |
Color | ambientColor |
|
default |
Instantiation constructor for the Lighting struct.
|
inline |
Instantiation constructor for the Lighting struct.
config | Config handle. |
The config block has to contain a pointLightOrigin parameter (Vec3). Optional are ambientColor (Vec3), diffuseColor (Vec3), specularColor (Vec3). Colors are Vec3's with values from 0 to 1.
Color walberla::pe::raytracing::Lighting::ambientColor |
Color walberla::pe::raytracing::Lighting::diffuseColor |
Vec3 walberla::pe::raytracing::Lighting::pointLightOrigin |
Color walberla::pe::raytracing::Lighting::specularColor |