Light
Abstract base class for light types.
Not intended for direct use.
INFO
Derives from Node and inherits all public properties and methods.
Construction
Constructors
Types
Light::Attenuation struct
Defines how light intensity diminishes over distance.
Name | Type | Description |
---|---|---|
base | float | Minimum light intensity, unaffected by distance. |
linear | float | Gradual, proportional fade as distance increases. |
quadratic | float | Real-world light falloff using an inverse-square law. |
Properties
intensity float
cpp
float intensity { 1.0f }
Light intensity.
Functions
GetNodeType() Node::Type virtual
cpp
Node::Type vglx::Light::GetNodeType() const override
Returns node type.
GetType() LightType pure virtual
cpp
virtual LightType vglx::Light::GetType() const=0
Returns light type.
SetDebugMode() void virtual
cpp
virtual void vglx::Light::SetDebugMode(bool is_debug_mode)
Parameter | Description |
---|---|
is_debug_mode | True to enable debug mode, false to disable. |
Sets debug mode.