Getting the GL side up-to-date to match.

This commit is contained in:
Areloch 2018-10-06 17:50:15 -05:00
parent 24007432e8
commit 4efcb567b0
21 changed files with 694 additions and 286 deletions

View file

@ -714,12 +714,11 @@ void ReflectionProbe::_onRenderViz(ObjectRenderInst *ri,
}
else
{
const MatrixF worldToObjectXfm = getTransform();
Box3F cube(-Point3F(mRadius, mRadius, mRadius),Point3F(mRadius, mRadius, mRadius));
cube.setCenter(getPosition()+mProbePosOffset);
draw->drawCube(desc, cube, color);
cube = getWorldBox();
draw->drawCube(desc, cube, color);
draw->drawCube(desc, cube, color, &worldToObjectXfm);
}
}

View file

@ -617,7 +617,7 @@ void RenderProbeMgr::ReflectProbeMaterialInfo::setProbeParameters(const ProbeRen
matParams->setSafe(bbMax, probeInfo->mBounds.maxExtents);
matParams->setSafe(useSphereMode, probeInfo->mProbeShapeType == ProbeInfo::Sphere ? 1.0f : 0.0f);
//SH Terms
//static AlignedArray<Point3F> shTermsArray(9, sizeof(Point3F));
//dMemset(shTermsArray.getBuffer(), 0, shTermsArray.getBufferSize());