mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 23:09:52 +02:00
Fix iDate uniform in procedurals to be continuous
This commit is contained in:
parent
8420e67b54
commit
27ecdffeb3
1 changed files with 2 additions and 1 deletions
|
@ -374,7 +374,8 @@ void Procedural::setupUniforms() {
|
||||||
v.y = date.month() - 1;
|
v.y = date.month() - 1;
|
||||||
// But not the day... go figure
|
// But not the day... go figure
|
||||||
v.z = date.day();
|
v.z = date.day();
|
||||||
v.w = (time.hour() * 3600) + (time.minute() * 60) + time.second();
|
float fractSeconds = (time.msec() / 1000.0f);
|
||||||
|
v.w = (time.hour() * 3600) + (time.minute() * 60) + time.second() + fractSeconds;
|
||||||
batch._glUniform(_standardUniformSlots[DATE], v);
|
batch._glUniform(_standardUniformSlots[DATE], v);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue