Revision 885b9cca
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/examples/effectqueue/EffectQueueRenderer.java | ||
---|---|---|
29 | 29 |
import android.opengl.GLSurfaceView; |
30 | 30 |
|
31 | 31 |
import org.distorted.library.effect.EffectName; |
32 |
import org.distorted.library.effect.FragmentEffectAlpha; |
|
33 |
import org.distorted.library.effect.FragmentEffectChroma; |
|
34 |
import org.distorted.library.effect.FragmentEffectSaturation; |
|
32 | 35 |
import org.distorted.library.effect.MatrixEffectScale; |
36 |
import org.distorted.library.effect.VertexEffectDistort; |
|
37 |
import org.distorted.library.effect.VertexEffectSink; |
|
33 | 38 |
import org.distorted.library.main.DistortedEffects; |
34 | 39 |
import org.distorted.library.main.DistortedScreen; |
35 | 40 |
import org.distorted.library.main.MeshFlat; |
... | ... | |
110 | 115 |
mScreen.detachAll(); |
111 | 116 |
mScreen.attach(mTexture,mEffects,mMesh); |
112 | 117 |
|
113 |
DistortedEffects.enableEffect(EffectName.DISTORT);
|
|
114 |
DistortedEffects.enableEffect(EffectName.SINK);
|
|
115 |
DistortedEffects.enableEffect(EffectName.SMOOTH_ALPHA);
|
|
116 |
DistortedEffects.enableEffect(EffectName.SATURATION);
|
|
117 |
DistortedEffects.enableEffect(EffectName.SMOOTH_CHROMA);
|
|
118 |
VertexEffectDistort.enable();
|
|
119 |
VertexEffectSink.enable();
|
|
120 |
FragmentEffectAlpha.enable();
|
|
121 |
FragmentEffectChroma.enable();
|
|
122 |
FragmentEffectSaturation.enable();
|
|
118 | 123 |
|
119 | 124 |
try |
120 | 125 |
{ |
Also available in: Unified diff
Move all the knowledge about Vertex and Fragment effects to their respective classes.