mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
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:
parent
9e88e9feca
commit
57f8549abe
22 changed files with 901 additions and 1250 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue