Revision 7cd24173
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/effect/FragmentEffectChroma.java | ||
---|---|---|
76 | 76 |
mColor.get(uniforms,index+1,currentDuration,step); |
77 | 77 |
return mBlend.get(uniforms,index,currentDuration,step); |
78 | 78 |
} |
79 |
|
|
80 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
81 |
|
|
82 |
public static void enable() |
|
83 |
{ |
|
84 |
addEffect( EffectName.CHROMA,EffectName.SMOOTH_CHROMA, |
|
85 |
"color.rgb = mix(color.rgb, fUniforms[effect].yzw, degree*fUniforms[effect].x);" ); |
|
86 |
} |
|
79 | 87 |
} |
Also available in: Unified diff
Move all the knowledge about Vertex and Fragment effects to their respective classes.