mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
make cubic reflectors respect the reflectordesc->detailAdjust
This commit is contained in:
parent
674a7a0212
commit
d16f2df63a
1 changed files with 4 additions and 0 deletions
|
|
@ -355,6 +355,9 @@ void CubeReflector::updateFace( const ReflectParams ¶ms, U32 faceidx, Point3
|
|||
// store current matrices
|
||||
GFXTransformSaver saver;
|
||||
|
||||
F32 detailAdjustBackup = TSShapeInstance::smDetailAdjust;
|
||||
TSShapeInstance::smDetailAdjust *= mDesc->detailAdjust;
|
||||
|
||||
// set projection to 90 degrees vertical and horizontal
|
||||
F32 left, right, top, bottom;
|
||||
MathUtils::makeFrustum( &left, &right, &top, &bottom, M_HALFPI_F, 1.0f, mDesc->nearDist );
|
||||
|
|
@ -437,6 +440,7 @@ void CubeReflector::updateFace( const ReflectParams ¶ms, U32 faceidx, Point3
|
|||
|
||||
// Clean up.
|
||||
mRenderTarget->resolve();
|
||||
TSShapeInstance::smDetailAdjust = detailAdjustBackup;
|
||||
}
|
||||
|
||||
F32 CubeReflector::calcFaceScore( const ReflectParams ¶ms, U32 faceidx )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue