Assign result from mClampF

This commit is contained in:
Johan Mattsson 2023-03-04 21:44:52 +01:00 committed by GitHub
parent 3c19b8c679
commit 4f4184ab68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -395,7 +395,7 @@ void ProjectedShadow::_calcScore( const SceneRenderState *state )
F32 secs = mFloor( (F32)msSinceLastRender / 1000.0f );
mScore = pct + secs;
mClampF( mScore, 0.0f, 2000.0f );
mScore = mClampF( mScore, 0.0f, 2000.0f );
}
void ProjectedShadow::update( const SceneRenderState *state )