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/MatrixEffectMove.java
47 47
      mDynamic0 = (Dynamic3D)vector;
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  ] = ((Static3D)mStatic0).getX();
62
      uniforms[index+1] = ((Static3D)mStatic0).getY();
63
      uniforms[index+2] = ((Static3D)mStatic0).getZ();
64

  
65
      return false;
66
      }
67
    }
50 68
  }

Also available in: Unified diff