Fix iDate uniform in procedurals to be continuous

This commit is contained in:
Brad Davis 2016-03-12 16:46:15 -08:00
parent 8420e67b54
commit 27ecdffeb3

View file

@ -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);
});
}