Classes

Scene/Components/Lighting

Brief descriptions

Detailed information

scene::DirectionalLightComponent

engine/core/modules/scene/include/nau/scene/components/directional_light_component.h

class DirectionalLightComponent : public nau::scene::Component

Public Functions

void setDirection(const math::Vector3 &direction)
void setColor(const math::Color3 &color)
void setIntensity(float intensity)
void setCastShadows(bool hasShadows)
void setShadowMapSize(uint32_t size)
void setShadowCascadeCount(uint32_t count)
void setCsmPowWeight(float weight)
math::Vector3 getDirection() const
math::Color3 getColor() const
float getIntensity() const
uint32_t getShadowMapSize() const
uint32_t getShadowCascadeCount() const
float getCsmPowWeight() const
bool hasShadows() const

Private Members

m_direction
direction
m_red
colorRed
m_green
colorGreen
m_blue
colorBlue
m_intensity
intensity
m_castShadows
castShadows
m_csmSize
shadow map resolution
shadow map m_csmCascadesCount
shadow map cascades count
shadow map cascades m_csmPowWeight
math::Vector3 m_direction = {0.5f, -0.5f, 0.0f}
float m_red = 1
float m_green = 1
float m_blue = 1
float m_intensity = 1
bool m_castShadows = false
uint32_t m_csmSize = 512
uint32_t m_csmCascadesCount = 4
float m_csmPowWeight = 0.985f

scene::OmnilightComponent

engine/core/modules/scene/include/nau/scene/components/omnilight_component.h

class OmnilightComponent : public nau::scene::SceneComponent

Public Functions

math::Vector3 getShift() const
math::Color3 getColor() const
float getRadius() const
float getAttenuation() const
float getIntensity() const
void setShift(math::Vector3)
void setColor(math::Color3)
void setRadius(float)
void setAttenuation(float)
void setIntensity(float)

Public Members

m_shift
shift
m_red
colorRed
m_green
colorGreen
m_blue
colorBlue
m_radius
radius
m_intensity
intensity
m_attenuation
attenuation

Private Members

math::Vector3 m_shift = {}
float m_red = 1
float m_green = 1
float m_blue = 0
float m_radius = 1
float m_intensity = 1
float m_attenuation = 0.5

scene::SpotlightComponent

engine/core/modules/scene/include/nau/scene/components/spotlight_component.h

class SpotlightComponent : public nau::scene::SceneComponent

Public Functions

math::Vector3 getShift() const
math::Vector3 getDirection() const
math::Color3 getColor() const
float getRadius() const
float getAttenuation() const
float getAngle() const
float getIntensity() const
void setShift(math::Vector3)
void setDirection(math::Vector3)
void setColor(math::Color3)
void setRadius(float)
void setIntensity(float)
void setAttenuation(float)
void setAngle(float)

Public Members

m_shift
shift
m_direction
direction
m_red
colorRed
m_green
colorGreen
m_blue
colorBlue
m_radius
radius
m_angle
angle
m_intensity
intensity
m_attenuation
attenuation

Private Members

math::Vector3 m_shift = {0, 0, 0}
float m_red = 0
float m_green = 1
float m_blue = 0
float m_radius = 5
float m_intensity = 1
float m_attenuation = 0.2
float m_angle = 0.6 * std::numbers::pi_v<float>
math::Vector3 m_direction = {0, 0, 1}