mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 19:43:49 +00:00
Merge pull request #1260 from Azaezel/alpha41/dynamicReflectionRevisions
fix dynamicCubemaps on objects
This commit is contained in:
commit
29ba0439b7
5 changed files with 15 additions and 13 deletions
|
|
@ -532,7 +532,7 @@ F32 PlaneReflector::calcScore( const ReflectParams ¶ms )
|
|||
return score;
|
||||
}
|
||||
|
||||
void PlaneReflector::updateReflection( const ReflectParams ¶ms )
|
||||
void PlaneReflector::updateReflection( const ReflectParams ¶ms, Point3F explicitPostion)
|
||||
{
|
||||
PROFILE_SCOPE(PlaneReflector_updateReflection);
|
||||
GFXDEBUGEVENT_SCOPE( PlaneReflector_updateReflection, ColorI::WHITE );
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ public:
|
|||
|
||||
virtual void unregisterReflector();
|
||||
virtual F32 calcScore( const ReflectParams ¶ms );
|
||||
virtual void updateReflection( const ReflectParams ¶ms ) {}
|
||||
virtual void updateReflection( const ReflectParams ¶ms, Point3F explicitPostion = Point3F::Max) {}
|
||||
|
||||
GFXOcclusionQuery* getOcclusionQuery() const { return mOcclusionQuery; }
|
||||
|
||||
|
|
@ -151,7 +151,7 @@ public:
|
|||
ReflectorDesc *inDesc );
|
||||
|
||||
void unregisterReflector() override;
|
||||
virtual void updateReflection( const ReflectParams ¶ms, Point3F explicitPostion = Point3F::Max);
|
||||
void updateReflection( const ReflectParams ¶ms, Point3F explicitPostion = Point3F::Max) override;
|
||||
|
||||
GFXCubemap* getCubemap() const { return mCubemap; }
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ protected:
|
|||
U32 faceIdx;
|
||||
CubeReflector *cube;
|
||||
|
||||
void updateReflection( const ReflectParams ¶ms ) override { cube->updateFace( params, faceIdx ); }
|
||||
void updateReflection( const ReflectParams ¶ms, Point3F explicitPostion = Point3F::Max) override { cube->updateFace( params, faceIdx ); }
|
||||
F32 calcScore( const ReflectParams ¶ms ) override;
|
||||
};
|
||||
|
||||
|
|
@ -201,7 +201,7 @@ public:
|
|||
ReflectorDesc *inDesc );
|
||||
|
||||
F32 calcScore( const ReflectParams ¶ms ) override;
|
||||
void updateReflection( const ReflectParams ¶ms ) override;
|
||||
void updateReflection( const ReflectParams ¶ms, Point3F explicitPostion = Point3F::Max) override;
|
||||
|
||||
/// Set up the GFX matrices
|
||||
void setGFXMatrices( const MatrixF &camTrans );
|
||||
|
|
@ -233,4 +233,4 @@ public:
|
|||
bool objectSpace;
|
||||
};
|
||||
|
||||
#endif // _REFLECTOR_H_
|
||||
#endif // _REFLECTOR_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue