3#include <Core/World/World.h>
4#include <RendererCore/Meshes/MeshComponent.h>
45 void SetExposureBias(
float fExposureBias);
46 float GetExposureBias()
const {
return m_fExposureBias; }
49 void SetInverseTonemap(
bool bInverseTonemap);
50 bool GetInverseTonemap()
const {
return m_bInverseTonemap; }
53 void SetUseFog(
bool bUseFog);
54 bool GetUseFog()
const {
return m_bUseFog; }
57 void SetVirtualDistance(
float fVirtualDistance);
58 float GetVirtualDistance()
const {
return m_fVirtualDistance; }
60 void SetCubeMapFile(
const char* szFile);
61 const char* GetCubeMapFile()
const;
68 void UpdateMaterials();
70 float m_fExposureBias = 0.0f;
71 float m_fVirtualDistance = 1000.0f;
72 bool m_bInverseTonemap =
false;
73 bool m_bUseFog =
true;
virtual void SerializeComponent(plWorldWriter &inout_stream) const
Override this to save the current state of the component to the given stream.
Definition Component.cpp:54
virtual void DeserializeComponent(plWorldReader &inout_stream)
Override this to load the current state of the component from the given stream.
Definition Component.cpp:58
virtual void Initialize()
Can be overridden for basic initialization that depends on a valid hierarchy and position.
Definition Component.cpp:131
Definition ComponentManager.h:88
Base class for objects that should be rendered.
Definition RenderComponent.h:9
virtual void OnActivated() override
This method is called when the component gets activated.
Definition RenderComponent.cpp:33
virtual plResult GetLocalBounds(plBoundingBoxSphere &ref_bounds, bool &ref_bAlwaysVisible, plMsgUpdateLocalBounds &ref_msg)=0
Called by plRenderComponent::OnUpdateLocalBounds(). If PL_SUCCESS is returned, bounds and bAlwaysVisi...
Adds a static image of a sky to the scene.
Definition SkyBoxComponent.h:17
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