Project

General

Profile

« Previous | Next » 

Revision 0273ef2a

Added by Leszek Koltunski almost 4 years ago

Fixes for pausing and restarting.

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueuePostprocess.java
85 85

  
86 86
    for(int i=0; i<mNumEffects; i++)
87 87
      {
88
      mCurrentDuration[i] += step;
89

  
90 88
      // first zero out the 'alpha' because BLUR effect will not overwrite this (it is a 1D effect)
91 89
      // and if previously there was a GLOW effect here then mA would be non-zero and we don't want
92 90
      // that (see preprocess())
93 91
      mUniforms[NUM_UNIFORMS*i+5]=0.0f;
94 92

  
95
      if( mEffects[i].compute(mUniforms, NUM_UNIFORMS*i, mCurrentDuration[i], step) )
93
      if( mEffects[i].compute(mUniforms, NUM_UNIFORMS*i, currTime, step) )
96 94
        {
97 95
        EffectMessageSender.newMessage(mEffects[i]);
98 96
        }

Also available in: Unified diff