Project

General

Profile

« Previous | Next » 

Revision 15aa7d94

Added by Leszek Koltunski almost 7 years ago

Progress with support for Effect classes.

View differences:

src/main/java/org/distorted/library/effect/PostprocessEffectBlur.java
47 47
      mStatic0  = (Static1D)radius;
48 48
      }
49 49
    }
50

  
51
///////////////////////////////////////////////////////////////////////////////////////////////////
52

  
53
  public boolean compute(float[] uniforms, int index, long currentDuration, long step )
54
    {
55
    if( mDynamic0!=null )
56
      {
57
      return mDynamic0.interpolateMain(uniforms,index,currentDuration,step);
58
      }
59
    else
60
      {
61
      uniforms[index] = ((Static1D)mStatic0).getX();
62
      return false;
63
      }
64
    }
50 65
  }

Also available in: Unified diff