3#include <RendererCore/Components/RenderComponent.h>
4#include <RendererCore/Pipeline/RenderData.h>
14 void FillBatchIdAndSortingKey(
float fScreenSpaceSize);
18 float m_fSpecularMultiplier;
19 plUInt32 m_uiShadowDataOffset;
33 virtual void SerializeComponent(
plWorldWriter& inout_stream)
const override;
34 virtual void DeserializeComponent(
plWorldReader& inout_stream)
override;
45 void SetUsingColorTemperature(
bool bUseColorTemperature);
46 bool GetUsingColorTemperature()
const;
53 void SetTemperature(plUInt32 uiTemperature);
54 plUInt32 GetTemperature()
const;
57 void SetIntensity(
float fIntensity);
58 float GetIntensity()
const;
60 void SetSpecularMultiplier(
float fSpecularMultiplier);
61 float GetSpecularMultiplier()
const;
64 void SetCastShadows(
bool bCastShadows);
65 bool GetCastShadows()
const;
68 void SetPenumbraSize(
float fPenumbraSize);
69 float GetPenumbraSize()
const;
72 void SetSlopeBias(
float fShadowBias);
73 float GetSlopeBias()
const;
76 void SetConstantBias(
float fShadowBias);
77 float GetConstantBias()
const;
80 void SetWidth(
float fWidth);
81 float GetWidth()
const;
84 void SetLength(
float fLength);
85 float GetLength()
const;
93 static float CalculateEffectiveRange(
float fRange,
float fIntensity,
float fWidth = 0.0f,
float fLength = 0.0f);
100 plUInt32 m_uiTemperature = 6550;
101 float m_fIntensity = 10.0f;
102 float m_fSpecularMultiplier = 1.0f;
103 float m_fPenumbraSize = 0.1f;
104 float m_fSlopeBias = 0.25f;
105 float m_fConstantBias = 0.1f;
106 bool m_bCastShadows =
false;
107 bool m_bUseColorTemperature =
false;
A camera class that stores the orientation and some basic camera settings.
Definition Camera.h:41
A 8bit per channel unsigned normalized (values interpreted as 0-1) color storage format that represen...
Definition Color8UNorm.h:99
plColor represents an RGBA color in linear color space. Values are stored as float,...
Definition Color.h:44
static const plColor White
#FFFFFF
Definition Color.h:194
Base class for dynamic light components.
Definition LightComponent.h:26
Base class for light render data objects.
Definition LightComponent.h:10
Base class for objects that should be rendered.
Definition RenderComponent.h:9
Base class for all render data. Render data must contain all information that is needed to render the...
Definition RenderData.h:14
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
A message to modify the main color of some thing.
Definition SetColorMessage.h:32