Plasma Engine  2.0
Loading...
Searching...
No Matches
BakingInterface.h
1#pragma once
2
3#include <Foundation/Reflection/Reflection.h>
4#include <Foundation/Utilities/Progress.h>
5#include <RendererCore/RendererCoreDLL.h>
6
7struct PL_RENDERERCORE_DLL plBakingSettings
8{
9 plVec3 m_vProbeSpacing = plVec3(4);
10 plUInt32 m_uiNumSamplesPerProbe = 128;
11 float m_fMaxRayDistance = 1000.0f;
12
13 plResult Serialize(plStreamWriter& inout_stream) const;
14 plResult Deserialize(plStreamReader& inout_stream);
15};
16
17PL_DECLARE_REFLECTABLE_TYPE(PL_RENDERERCORE_DLL, plBakingSettings);
18
19class plWorld;
20
22{
23public:
25 virtual plResult RenderDebugView(const plWorld& world, const plMat4& mInverseViewProjection, plUInt32 uiWidth, plUInt32 uiHeight, plDynamicArray<plColorGammaUB>& out_pixels, plProgress& ref_progress) const = 0;
26};
Definition BakingInterface.h:22
virtual plResult RenderDebugView(const plWorld &world, const plMat4 &mInverseViewProjection, plUInt32 uiWidth, plUInt32 uiHeight, plDynamicArray< plColorGammaUB > &out_pixels, plProgress &ref_progress) const =0
Renders a debug view of the baking scene.
Definition DynamicArray.h:81
Manages the way a progress bar is subdivided and advanced.
Definition Progress.h:36
Interface for binary in (read) streams.
Definition Stream.h:22
Interface for binary out (write) streams.
Definition Stream.h:107
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22
Definition BakingInterface.h:8
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54