Project

General

Profile

« Previous | Next » 

Revision 7cd24173

Added by Leszek Koltunski almost 7 years ago

Move all the knowledge about Vertex and Fragment effects to their respective classes.

View differences:

src/main/java/org/distorted/library/effect/FragmentEffectBrightness.java
65 65
    mRegion.get(uniforms,index+4,currentDuration,step);
66 66
    return mBrightness.get(uniforms,index,currentDuration,step);
67 67
    }
68

  
69
///////////////////////////////////////////////////////////////////////////////////////////////////
70

  
71
  public static void enable()
72
    {
73
    addEffect( EffectName.BRIGHTNESS,EffectName.SMOOTH_BRIGHTNESS,
74
               "color.rgb = mix(vec3(0.0,0.0,0.0), color.rgb, degree*(fUniforms[effect].x-1.0)+1.0 );" );
75
    }
68 76
  }

Also available in: Unified diff