Plasma Engine  2.0
Loading...
Searching...
No Matches
SphereReflectionProbeComponent.h
1#pragma once
2
3#include <RendererCore/Lights/ReflectionProbeComponentBase.h>
4
5class PL_RENDERERCORE_DLL plSphereReflectionProbeComponentManager final : public plComponentManager<class plSphereReflectionProbeComponent, plBlockStorageType::Compact>
6{
7public:
9};
10
12// plSphereReflectionProbeComponent
13
18{
20
22 // plComponent
23
24public:
25 virtual void SerializeComponent(plWorldWriter& inout_stream) const override;
26 virtual void DeserializeComponent(plWorldReader& inout_stream) override;
27
28protected:
29 virtual void OnActivated() override;
30 virtual void OnDeactivated() override;
31
32
34 // plSphereReflectionProbeComponent
35
36public:
39
40 void SetRadius(float fRadius); // [ property ]
41 float GetRadius() const; // [ property ]
42
43 void SetFalloff(float fFalloff); // [ property ]
44 float GetFalloff() const { return m_fFalloff; } // [ property ]
45
46 void SetSphereProjection(bool bSphereProjection); // [ property ]
47 bool GetSphereProjection() const { return m_bSphereProjection; } // [ property ]
48
49protected:
51 // Editor
52 void OnObjectCreated(const plAbstractObjectNode& node);
53
54protected:
55 void OnUpdateLocalBounds(plMsgUpdateLocalBounds& msg);
56 void OnMsgExtractRenderData(plMsgExtractRenderData& msg) const;
57 void OnTransformChanged(plMsgTransformChanged& msg);
58 float m_fRadius = 5.0f;
59 float m_fFalloff = 0.1f;
60 bool m_bSphereProjection = true;
61};
Definition AbstractObjectGraph.h:17
Definition ComponentManager.h:88
Base class for all reflection probes.
Definition ReflectionProbeComponentBase.h:13
Sphere reflection probe component.
Definition SphereReflectionProbeComponent.h:18
Definition SphereReflectionProbeComponent.h:6
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22
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 RenderData.h:116
Definition TransformChangedMessage.h:7
Definition UpdateLocalBoundsMessage.h:9