seperated offset from position (we pass the net to the shader for use in the reflection box), and added a scalar (also only used in the reflection box). maked both as probeRef to denote reflection parameters.

This commit is contained in:
Azaezel 2019-02-19 08:58:02 -06:00
parent 04b3509e6c
commit 5c356519e4
5 changed files with 43 additions and 26 deletions

View file

@ -67,7 +67,8 @@ struct ProbeRenderInst : public SystemInterface<ProbeRenderInst>
Box3F mBounds;
Point3F mPosition;
Point3F mProbePosOffset;
Point3F mProbeRefOffset;
Point3F mProbeRefScale;
GFXCubemapHandle mCubemap;
GFXCubemapHandle mIrradianceCubemap;
@ -161,6 +162,7 @@ class RenderProbeMgr : public RenderBinManager
U32 mEffectiveProbeCount;
S32 mMipCount;
Vector<Point4F> probePositionsData;
Vector<Point4F> probeRefPositionsData;
Vector<MatrixF> probeWorldToObjData;
Vector<Point4F> probeBBMinData;
Vector<Point4F> probeBBMaxData;