mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:24:24 +02:00
try to fix linux build
This commit is contained in:
parent
ae0b9ea9a3
commit
6154aaddda
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ void ModelMeshPartPayload::initCache() {
|
||||||
float ModelMeshPartPayload::calcFadeRatio() const {
|
float ModelMeshPartPayload::calcFadeRatio() const {
|
||||||
const float FADE_TIME = 0.5f;
|
const float FADE_TIME = 0.5f;
|
||||||
float t = std::min(((float)(usecTimestampNow() - _fadeStartTime)) / ((float)(FADE_TIME * USECS_PER_SECOND)), 1.0f);
|
float t = std::min(((float)(usecTimestampNow() - _fadeStartTime)) / ((float)(FADE_TIME * USECS_PER_SECOND)), 1.0f);
|
||||||
return -(cosf(M_PI_2*t) - 1.0f);
|
return -(cosf((float)M_PI_2 * t) - 1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModelMeshPartPayload::notifyLocationChanged() {
|
void ModelMeshPartPayload::notifyLocationChanged() {
|
||||||
|
|
Loading…
Reference in a new issue