walberla::pe::raytracing::Lighting Struct Reference

Detailed Description

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
 

Constructor & Destructor Documentation

◆ Lighting() [1/3]

walberla::pe::raytracing::Lighting::Lighting ( )
default

Instantiation constructor for the Lighting struct.

◆ Lighting() [2/3]

walberla::pe::raytracing::Lighting::Lighting ( const Vec3 _pointLightOrigin,
const Color _diffuseColor,
const Color _specularColor,
const Color _ambientColor 
)
inline

Instantiation constructor for the Lighting struct.

Parameters
_pointLightOriginOrigin of the point light.
_diffuseColorDiffuse color (base color of the light).
_specularColorSpecular color (color of light refractions on an objects surface).
_ambientColorColor of the ambient light in the scene.

◆ Lighting() [3/3]

walberla::pe::raytracing::Lighting::Lighting ( const Config::BlockHandle config)
inline

Instantiation constructor for the Lighting struct.

Parameters
configConfig 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.

Member Data Documentation

◆ ambientColor

Color walberla::pe::raytracing::Lighting::ambientColor

◆ diffuseColor

Color walberla::pe::raytracing::Lighting::diffuseColor

◆ pointLightOrigin

Vec3 walberla::pe::raytracing::Lighting::pointLightOrigin

◆ specularColor

Color walberla::pe::raytracing::Lighting::specularColor

The documentation for this struct was generated from the following file: