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/PostprocessEffectGlow.java
59 59
      mStatic1  = (Static4D)color;
60 60
      }
61 61
    }
62

  
63
///////////////////////////////////////////////////////////////////////////////////////////////////
64

  
65
  public boolean compute(float[] uniforms, int index, long currentDuration, long step )
66
    {
67
    if( mDynamic1!=null )
68
      {
69
      mDynamic1.interpolateMain(uniforms,index+1,currentDuration,step);
70
      }
71
    else
72
      {
73
      uniforms[index+1] = ((Static4D)mStatic1).getX();
74
      uniforms[index+2] = ((Static4D)mStatic1).getY();
75
      uniforms[index+3] = ((Static4D)mStatic1).getZ();
76
      uniforms[index+4] = ((Static4D)mStatic1).getW();
77
      }
78

  
79
    if( mDynamic0!=null )
80
      {
81
      return mDynamic0.interpolateMain(uniforms,index,currentDuration,step);
82
      }
83
    else
84
      {
85
      uniforms[index  ] = ((Static1D)mStatic0).getX();
86
      return false;
87
      }
88
    }
62 89
  }

Also available in: Unified diff