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/MatrixEffectScale.java
56 56

  
57 57
    mStatic0 = new Static3D(scale,scale,scale);
58 58
    }
59

  
60
///////////////////////////////////////////////////////////////////////////////////////////////////
61

  
62
  public boolean compute(float[] uniforms, int index, long currentDuration, long step )
63
    {
64
    if( mDynamic0!=null )
65
      {
66
      return mDynamic0.interpolateMain(uniforms,index,currentDuration,step);
67
      }
68
    else
69
      {
70
      uniforms[index  ] = ((Static3D)mStatic0).getX();
71
      uniforms[index+1] = ((Static3D)mStatic0).getY();
72
      uniforms[index+2] = ((Static3D)mStatic0).getZ();
73

  
74
      return false;
75
      }
76
    }
59 77
  }

Also available in: Unified diff