3#include <RendererCore/Lights/LightComponent.h>
4#include <RendererCore/Pipeline/Declarations.h>
5#include <RendererCore/Textures/Texture2DResource.h>
31 virtual void SerializeComponent(
plWorldWriter& inout_stream)
const override;
32 virtual void DeserializeComponent(
plWorldReader& inout_stream)
override;
50 void SetRange(
float fRange);
51 float GetRange()
const;
54 float GetEffectiveRange()
const;
57 void SetInnerSpotAngle(
plAngle spotAngle);
58 plAngle GetInnerSpotAngle()
const;
61 void SetOuterSpotAngle(
plAngle spotAngle);
62 plAngle GetOuterSpotAngle()
const;
64 void SetFalloff(
float fFalloff);
65 float GetFalloff()
const;
77 float m_fRange = 0.0f;
78 float m_fEffectiveRange = 0.0f;
79 float m_fFalloff = 0.0f;
95 const char* szAngleProperty,
const char* szRangeProperty,
const char* szIntensityProperty,
const char* szColorProperty);
Float wrapper struct for a safe usage and conversions of angles.
Definition Angle.h:10
static constexpr plAngle MakeFromDegree(float fDegree)
Creates an instance of plAngle that was initialized from degree. (Performs a conversion)
Definition Angle_inl.h:33
Definition ComponentManager.h:88
Base class for dynamic light components.
Definition LightComponent.h:26
Base class for light render data objects.
Definition LightComponent.h:10
Adds a spotlight to the scene, optionally casting shadows.
Definition SpotLightComponent.h:24
The render data object for spot lights.
Definition SpotLightComponent.h:11
A special visualizer attribute for spot lights.
Definition SpotLightComponent.h:89
Definition PropertyAttributes.h:780
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition WorldReader.h:47
Stores an entire plWorld in a stream.
Definition WorldWriter.h:13
Definition UpdateLocalBoundsMessage.h:9
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54