mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
swap over to wireframe, plus a few misc cleanups
This commit is contained in:
parent
309d518249
commit
cf50803e72
2 changed files with 6 additions and 15 deletions
|
|
@ -743,12 +743,6 @@ void ReflectionProbe::prepRenderImage(SceneRenderState *state)
|
|||
|
||||
// Set the world matrix to the objects render transform
|
||||
MatrixF mat = getRenderTransform();
|
||||
mat.scale(Point3F(1, 1, 1));
|
||||
|
||||
Point3F centerPos = mat.getPosition();
|
||||
centerPos += mProbeRefOffset;
|
||||
mat.setPosition(centerPos);
|
||||
|
||||
GFX->setWorldMatrix(mat);
|
||||
|
||||
// Animate the the shape
|
||||
|
|
@ -785,10 +779,9 @@ void ReflectionProbe::_onRenderViz(ObjectRenderInst *ri,
|
|||
desc.setZReadWrite(true, false);
|
||||
desc.setCullMode(GFXCullNone);
|
||||
desc.setBlend(true);
|
||||
|
||||
desc.fillMode = GFXFillWireframe;
|
||||
// Base the sphere color on the light color.
|
||||
ColorI color = ColorI::WHITE;
|
||||
color.alpha = 25;
|
||||
ColorI color = ColorI(255, 0, 255, 63);
|
||||
|
||||
const MatrixF worldToObjectXfm = getTransform();
|
||||
if (mProbeShapeType == ProbeRenderInst::Sphere)
|
||||
|
|
@ -801,11 +794,9 @@ void ReflectionProbe::_onRenderViz(ObjectRenderInst *ri,
|
|||
projCube.setCenter(getPosition());
|
||||
draw->drawCube(desc, projCube, color, &worldToObjectXfm);
|
||||
}
|
||||
Box3F refCube = getWorldBox();
|
||||
refCube.set(mProbeRefScale);
|
||||
refCube.setCenter(getPosition() + mProbeRefOffset);
|
||||
color = ColorI::BLUE;
|
||||
color.alpha = 25;
|
||||
Box3F refCube = Box3F(-mProbeRefScale/2, mProbeRefScale/2);
|
||||
refCube.setCenter(getPosition()+mProbeRefOffset);
|
||||
color = ColorI(0, 255, 255, 63);
|
||||
draw->drawCube(desc, refCube, color, &worldToObjectXfm);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue