Revision 835b197e
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/library/effectqueue/EffectQueuePostprocess.java | ||
---|---|---|
76 | 76 |
|
77 | 77 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
78 | 78 |
|
79 |
void compute(long currTime) |
|
79 |
void compute(long currTime, long step)
|
|
80 | 80 |
{ |
81 |
if( currTime==mTime ) return; |
|
82 |
if( mTime==0 ) mTime = currTime; |
|
83 |
long step = (currTime-mTime); |
|
84 |
|
|
85 | 81 |
mR = mG = mB = mA = 0.0f; |
86 | 82 |
mHalo = 0; |
87 | 83 |
int halo; |
... | ... | |
111 | 107 |
mB = array[4]; |
112 | 108 |
mA = array[5]; |
113 | 109 |
} |
114 |
|
|
115 |
mTime = currTime; |
|
116 | 110 |
} |
117 | 111 |
|
118 | 112 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Move the information when was a EffectQueue last time evaluated from the EffectQueues all the way up to the Node which contains them.
The point: we need to reset this time back to 0 every time we attach the Node (and thus start evaluating the Queues inside)