Revision 7cd24173
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/effect/FragmentEffectContrast.java | ||
---|---|---|
65 | 65 |
mRegion.get(uniforms,index+4,currentDuration,step); |
66 | 66 |
return mContrast.get(uniforms,index,currentDuration,step); |
67 | 67 |
} |
68 |
|
|
69 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
70 |
|
|
71 |
public static void enable() |
|
72 |
{ |
|
73 |
addEffect( EffectName.CONTRAST,EffectName.SMOOTH_CONTRAST, |
|
74 |
"color.rgb = mix(vec3(0.5,0.5,0.5), color.rgb, degree*(fUniforms[effect].x-1.0)+1.0 );" ); |
|
75 |
} |
|
68 | 76 |
} |
Also available in: Unified diff
Move all the knowledge about Vertex and Fragment effects to their respective classes.