mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
make VCA animation line intensity multiplier implicit
This commit is contained in:
parent
bac0d43fd7
commit
6b36992119
2 changed files with 16 additions and 4 deletions
|
|
@ -6,12 +6,13 @@ class Time {
|
|||
uint64_t frame = 0;
|
||||
double lastTime = 0.0;
|
||||
double delta = 0.0;
|
||||
double timeMultiplier = 1.0;
|
||||
public:
|
||||
Time() {}
|
||||
|
||||
void update(double currentTime) {
|
||||
frame++;
|
||||
delta = currentTime - lastTime;
|
||||
delta = (currentTime - lastTime) * timeMultiplier;
|
||||
lastTime = currentTime;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue