Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Core::Asset::LightData::LightAttenuation Struct Reference

#include <Core/Asset/LightData.hpp>

+ Collaboration diagram for Ra::Core::Asset::LightData::LightAttenuation:

Public Member Functions

 LightAttenuation (Scalar c=1, Scalar l=0, Scalar q=0)
 

Public Attributes

Scalar constant
 
Scalar linear
 
Scalar quadratic
 

Detailed Description

Define the parameters of the attenuation function. The only supported attenuation function is 1/ (constant + linear*dist + quadradic*dist^2 )

Definition at line 44 of file LightData.hpp.

Constructor & Destructor Documentation

◆ LightAttenuation()

Ra::Core::Asset::LightData::LightAttenuation::LightAttenuation ( Scalar c = 1,
Scalar l = 0,
Scalar q = 0 )
inlineexplicit

Definition at line 48 of file LightData.hpp.

Member Data Documentation

◆ constant

Scalar Ra::Core::Asset::LightData::LightAttenuation::constant

Definition at line 45 of file LightData.hpp.

◆ linear

Scalar Ra::Core::Asset::LightData::LightAttenuation::linear

Definition at line 46 of file LightData.hpp.

◆ quadratic

Scalar Ra::Core::Asset::LightData::LightAttenuation::quadratic

Definition at line 47 of file LightData.hpp.


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