Class for Light.
More...
#include <Light.hpp>
|
enum | Type : uint8_t { Type::Ambient = 0,
Type::Directional = 1,
Type::Point = 2,
Type::Spot = 3
} |
|
enum | Type : uint8_t {
Type::Scene,
Type::SceneNode,
Type::Material,
Type::Mesh,
Type::Light,
Type::Texture,
Type::Pipeline,
Type::Camera,
Type::SkyBox
} |
| Type of the resource. More...
|
|
Class for Light.
Definition at line 26 of file Light.hpp.
◆ Type
Enumerator |
---|
Ambient | |
Directional | |
Point | |
Spot | |
Definition at line 30 of file Light.hpp.
◆ Light() [1/3]
lug::Graphics::Render::Light::Light |
( |
const Light & |
| ) |
|
|
delete |
◆ Light() [2/3]
lug::Graphics::Render::Light::Light |
( |
Light && |
| ) |
|
|
delete |
◆ ~Light()
lug::Graphics::Render::Light::~Light |
( |
| ) |
|
|
default |
◆ Light() [3/3]
lug::Graphics::Render::Light::Light |
( |
const std::string & |
name, |
|
|
Type |
type |
|
) |
| |
|
private |
Constructs a light.
- Parameters
-
[in] | name | The name of the Node |
[in] | type | The type of the Light |
Definition at line 9 of file Light.cpp.
◆ operator=() [1/2]
Light& lug::Graphics::Render::Light::operator= |
( |
const Light & |
| ) |
|
|
delete |
◆ operator=() [2/2]
Light& lug::Graphics::Render::Light::operator= |
( |
Light && |
| ) |
|
|
delete |
◆ setType()
void Light::setType |
( |
Type |
type | ) |
|
|
inline |
◆ setColor()
void Light::setColor |
( |
const Math::Vec4f & |
color | ) |
|
|
inline |
◆ setDirection()
void Light::setDirection |
( |
const Math::Vec3f & |
direction | ) |
|
|
inline |
◆ setConstantAttenuation()
void Light::setConstantAttenuation |
( |
float |
constantAttenuation | ) |
|
|
inline |
◆ setDistance()
void Light::setDistance |
( |
float |
distance | ) |
|
|
inline |
◆ setLinearAttenuation()
void Light::setLinearAttenuation |
( |
float |
linearAttenuation | ) |
|
|
inline |
◆ setQuadraticAttenuation()
void Light::setQuadraticAttenuation |
( |
float |
quadraticAttenuation | ) |
|
|
inline |
◆ setFalloffAngle()
void Light::setFalloffAngle |
( |
float |
falloffAngle | ) |
|
|
inline |
◆ setFalloffExponent()
void Light::setFalloffExponent |
( |
float |
falloffExponent | ) |
|
|
inline |
◆ getType()
Gets the light type.
- Returns
- The light type.
Definition at line 46 of file Light.inl.
◆ getColor()
const Math::Vec4f & Light::getColor |
( |
| ) |
const |
|
inline |
◆ getDirection()
const Math::Vec3f & Light::getDirection |
( |
| ) |
const |
|
inline |
◆ getConstantAttenuation()
float Light::getConstantAttenuation |
( |
| ) |
const |
|
inline |
◆ getDistance()
float Light::getDistance |
( |
| ) |
const |
|
inline |
◆ getLinearAttenuation()
float Light::getLinearAttenuation |
( |
| ) |
const |
|
inline |
◆ getQuadraticAttenuation()
float Light::getQuadraticAttenuation |
( |
| ) |
const |
|
inline |
◆ getFalloffAngle()
float Light::getFalloffAngle |
( |
| ) |
const |
|
inline |
◆ getFalloffExponent()
float Light::getFalloffExponent |
( |
| ) |
const |
|
inline |
◆ getData()
◆ ::lug::Graphics::Builder::Light
◆ strideShader
constexpr uint32_t lug::Graphics::Render::Light::strideShader { 80 } |
|
static |
◆ _type
◆ _color
Math::Vec4f lug::Graphics::Render::Light::_color {0.0f, 0.0f, 0.0f, 1.0f} |
|
protected |
◆ _direction
Math::Vec3f lug::Graphics::Render::Light::_direction {0.0f, 0.0f, 0.0f} |
|
protected |
◆ _constantAttenuation
float lug::Graphics::Render::Light::_constantAttenuation {0.0f} |
|
protected |
◆ _distance
float lug::Graphics::Render::Light::_distance {0.0f} |
|
protected |
◆ _linearAttenuation
float lug::Graphics::Render::Light::_linearAttenuation {1.0f} |
|
protected |
◆ _quadraticAttenuation
float lug::Graphics::Render::Light::_quadraticAttenuation {1.0f} |
|
protected |
◆ _falloffAngle
float lug::Graphics::Render::Light::_falloffAngle {Math::halfPi<float>()} |
|
protected |
◆ _falloffExponent
float lug::Graphics::Render::Light::_falloffExponent {0.0f} |
|
protected |
The documentation for this class was generated from the following files: