Shifted to the static-list arrangement for probe instance tracking to help performance as well as drastically streamline the data submission/material instance flow for probe rendering.

This commit is contained in:
Areloch 2018-10-07 17:32:23 -05:00
parent 9e88e9feca
commit 57f8549abe
22 changed files with 901 additions and 1250 deletions

View file

@ -109,9 +109,9 @@ protected:
//--------------------------------------------------------------------------
// Rendering variables
//--------------------------------------------------------------------------
ProbeInfo::ProbeShapeType mProbeShapeType;
ProbeRenderInst::ProbeShapeType mProbeShapeType;
ProbeInfo* mProbeInfo;
ProbeRenderInst* mProbeInfo;
//Indirect Lighting Contribution stuff
IndrectLightingModeType mIndrectLightingModeType;
@ -154,7 +154,6 @@ protected:
U32 mSpherePrimitiveCount;
//Debug rendering
static bool smRenderReflectionProbes;
static bool smRenderPreviewProbes;
U32 mDynamicLastBakeMS;
@ -221,7 +220,7 @@ public:
// Get the Material instance
void updateMaterial();
void updateProbeParams();
virtual void updateProbeParams();
bool createClientResources();
void generateTextures();
@ -241,7 +240,7 @@ public:
void bake(String outputPath, S32 resolution);
};
typedef ProbeInfo::ProbeShapeType ReflectProbeType;
typedef ProbeRenderInst::ProbeShapeType ReflectProbeType;
DefineEnumType(ReflectProbeType);
typedef ReflectionProbe::IndrectLightingModeType IndrectLightingModeEnum;