adds light fade and cap trackign to probe manager

prebake removes them, postbake restores them to ap settings.
also went ahead and threw the probes::capturing val at it as well
This commit is contained in:
AzaezelX 2022-08-28 14:27:15 -05:00
parent 280fca2fbe
commit 748f884671
2 changed files with 24 additions and 3 deletions

View file

@ -290,6 +290,11 @@ private:
/// </summary>
bool mUseHDRCaptures;
/// <summary>
/// holds the normal render state for light fade so we can capture them before and restore them after baking
/// </summary>
S32 mRenderMaximumNumOfLights;
bool mRenderUseLightFade;
protected:
/// The current active light manager.
static RenderProbeMgr* smProbeManager;
@ -413,7 +418,8 @@ public:
/// Takes a reflection probe and runs the cubemap bake process on it, outputting the resulting files to disk
/// </summary>
void bakeProbe(ReflectionProbe* probe);
void preBake();
void postBake();
/// <summary>
/// Runs the cubemap bake on all probes in the current scene
/// </summary>