mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 15:30:41 +00:00
Merge branch 'PBR_ProbeArrayWIP' of https://github.com/Areloch/Torque3D into PBR_ProbeArrayWIP
# Conflicts: # Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeArrayP.hlsl
This commit is contained in:
commit
caf73ea84f
5 changed files with 67 additions and 190 deletions
|
|
@ -556,19 +556,24 @@ void ReflectionProbe::updateProbeParams()
|
|||
|
||||
mProbeInfo->mProbeShapeType = mProbeShapeType;
|
||||
|
||||
mProbeInfo->mTransform = getWorldTransform();
|
||||
MatrixF transform = getTransform();
|
||||
|
||||
|
||||
mProbeInfo->mPosition = getPosition();
|
||||
|
||||
if(mProbeShapeType == ProbeRenderInst::Sphere)
|
||||
if (mProbeShapeType == ProbeRenderInst::Sphere)
|
||||
mObjScale.set(mRadius, mRadius, mRadius);
|
||||
|
||||
transform.scale(getScale());
|
||||
mProbeInfo->mTransform = transform.inverse();
|
||||
|
||||
// Skip our transform... it just dirties mask bits.
|
||||
Parent::setTransform(mObjToWorld);
|
||||
|
||||
resetWorldBox();
|
||||
|
||||
mProbeInfo->mBounds = mWorldBox;
|
||||
mProbeInfo->mExtents = getScale();
|
||||
mProbeInfo->mRadius = mRadius;
|
||||
|
||||
mProbeInfo->mIsSkylight = false;
|
||||
|
|
|
|||
|
|
@ -353,7 +353,7 @@ void RenderProbeMgr::_setupStaticParameters()
|
|||
|
||||
probeWorldToObjData[mEffectiveProbeCount] = transform;// curEntry.getTransform();
|
||||
Point3F bbMin = refPos - curEntry.mProbeRefScale/2;
|
||||
Point3F bbMax = refPos + curEntry.mProbeRefScale/2;
|
||||
Point3F bbMax = curEntry.mExtents/4;
|
||||
probeBBMinData[mEffectiveProbeCount] = Point4F(bbMin.x, bbMin.y, bbMin.z, 0);
|
||||
probeBBMaxData[mEffectiveProbeCount] = Point4F(bbMax.x, bbMax.y, bbMax.z, 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ struct ProbeRenderInst : public SystemInterface<ProbeRenderInst>
|
|||
bool mDirty;
|
||||
|
||||
Box3F mBounds;
|
||||
Point3F mExtents;
|
||||
Point3F mPosition;
|
||||
Point3F mProbeRefOffset;
|
||||
Point3F mProbeRefScale;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue