Project

General

Profile

« Previous | Next » 

Revision 7b2f81e8

Added by Leszek Koltunski over 2 years ago

Improvements for the new Border effect. Now works, but covers the object - to be corrected.

View differences:

src/main/java/org/distorted/library/effect/EffectName.java
76 76

  
77 77
  BLUR             ( EffectType.POSTPROCESS,new float[] {0.0f}           , 2, 0,     0    , PostprocessEffectBlur.class    ),
78 78
  GLOW             ( EffectType.POSTPROCESS,new float[] {0.0f}           , 6, 0,     0    , PostprocessEffectGlow.class    ),
79
  BORDER           ( EffectType.POSTPROCESS,new float[] {0.0f}           , 5, 0,     0    , PostprocessEffectBorder.class  ),
79
  BORDER           ( EffectType.POSTPROCESS,new float[] {0.0f}           , 6, 0,     0    , PostprocessEffectBorder.class  ),
80 80
  ;
81 81

  
82 82
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/PostprocessEffectBorder.java
50 50
 */
51 51
  public boolean compute(float[] uniforms, int index, long currentDuration, long step )
52 52
    {
53
    mColor.get(uniforms,index+1,currentDuration,step);
53
    mColor.get(uniforms,index+2,currentDuration,step);
54 54
    return mHalo.get(uniforms,index,currentDuration,step);
55 55
    }
56 56

  

Also available in: Unified diff