mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 04:52:17 +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;
|
||||
// But not the day... go figure
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue