fix dynamicCubemaps on objects

This commit is contained in:
AzaezelX 2024-04-18 13:57:29 -05:00
parent e5aa6e4a95
commit 824b9a9cd5
5 changed files with 15 additions and 13 deletions

View file

@ -531,7 +531,7 @@ F32 PlaneReflector::calcScore( const ReflectParams &params )
return score;
}
void PlaneReflector::updateReflection( const ReflectParams &params )
void PlaneReflector::updateReflection( const ReflectParams &params, Point3F explicitPostion)
{
PROFILE_SCOPE(PlaneReflector_updateReflection);
GFXDEBUGEVENT_SCOPE( PlaneReflector_updateReflection, ColorI::WHITE );

View file

@ -97,7 +97,7 @@ public:
virtual void unregisterReflector();
virtual F32 calcScore( const ReflectParams &params );
virtual void updateReflection( const ReflectParams &params ) {}
virtual void updateReflection( const ReflectParams &params, Point3F explicitPostion = Point3F::Max) {}
GFXOcclusionQuery* getOcclusionQuery() const { return mOcclusionQuery; }
@ -151,7 +151,7 @@ public:
ReflectorDesc *inDesc );
void unregisterReflector() override;
virtual void updateReflection( const ReflectParams &params, Point3F explicitPostion = Point3F::Max);
void updateReflection( const ReflectParams &params, Point3F explicitPostion = Point3F::Max) override;
GFXCubemap* getCubemap() const { return mCubemap; }
@ -174,7 +174,7 @@ protected:
U32 faceIdx;
CubeReflector *cube;
void updateReflection( const ReflectParams &params ) override { cube->updateFace( params, faceIdx ); }
void updateReflection( const ReflectParams &params, Point3F explicitPostion = Point3F::Max) override { cube->updateFace( params, faceIdx ); }
F32 calcScore( const ReflectParams &params ) override;
};
@ -201,7 +201,7 @@ public:
ReflectorDesc *inDesc );
F32 calcScore( const ReflectParams &params ) override;
void updateReflection( const ReflectParams &params ) override;
void updateReflection( const ReflectParams &params, 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_