3#include <Core/ResourceManager/ResourceHandle.h>
4#include <Core/World/World.h>
5#include <Foundation/Math/Float16.h>
6#include <RendererCore/Components/RenderComponent.h>
7#include <RendererCore/Pipeline/RenderData.h>
17 void FillBatchIdAndSortingKey();
23 float m_fMaxScreenSize;
25 float m_fShiftToCenter;
26 float m_fOcclusionSampleRadius;
27 float m_fOcclusionSampleSpread;
28 float m_fOcclusionDepthOffset;
30 bool m_bInverseTonemap;
31 bool m_bGreyscaleTexture;
48 void SetTextureFile(
const char* szFile);
49 const char* GetTextureFile()
const;
80 virtual void OnActivated()
override;
81 virtual void OnDeactivated()
override;
82 virtual void SerializeComponent(
plWorldWriter& inout_stream)
const override;
83 virtual void DeserializeComponent(
plWorldReader& inout_stream)
override;
99 float m_fIntensity = 1.0f;
109 void SetLinkToLightShape(
bool bLink);
110 bool GetLinkToLightShape()
const {
return m_bLinkToLightShape; }
114 void SetOcclusionSampleRadius(
float fRadius);
115 float GetOcclusionSampleRadius()
const {
return m_fOcclusionSampleRadius; }
119 float m_fOcclusionSampleSpread = 0.5f;
123 float m_fOcclusionDepthOffset = 0.0f;
128 void FindLightComponent();
132 float m_fOcclusionSampleRadius = 0.1f;
133 bool m_bLinkToLightShape =
true;
134 bool m_bApplyFog =
true;
136 bool m_bDirectionalLight =
false;
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
Definition ComponentManager.h:88
A simple helper class to use half-precision floats (plFloat16) as vectors.
Definition Float16.h:79
Adds a lensflare or corona effect to a lightsource.
Definition LensFlareComponent.h:73
Definition LensFlareComponent.h:13
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
Definition SmallArray.h:219
Interface for binary in (read) streams.
Definition Stream.h:22
Interface for binary out (write) streams.
Definition Stream.h:107
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 handle to a component.
Definition Declarations.h:138
Represents an individual element of a lens flare.
Definition LensFlareComponent.h:37
float m_fAspectRatio
Width:height ratio, only height is adjusted while width stays fixed.
Definition LensFlareComponent.h:42
bool m_bInverseTonemap
Apply an inverse tonemapping operation on the final color. This can be useful if the lens flare is no...
Definition LensFlareComponent.h:46
float m_fMaxScreenSize
Relative screen space size in 0..1 range.
Definition LensFlareComponent.h:41
bool m_bModulateByLightColor
Modulate the element's color by the light color and intensity if the lens flare component is linked t...
Definition LensFlareComponent.h:45
bool m_bGreyscaleTexture
Whether the given texture is a greyscale or color texture.
Definition LensFlareComponent.h:44
float m_fSize
World space size.
Definition LensFlareComponent.h:40
float m_fShiftToCenter
Move the element along the lens flare origin to screen center line. 0 is at the lens flare origin,...
Definition LensFlareComponent.h:43
A message to modify the main color of some thing.
Definition SetColorMessage.h:32
Definition UpdateLocalBoundsMessage.h:9
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54