Revision 6637d0f2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import org.distorted.library.Distorted; |
31 | 31 |
import org.distorted.library.DistortedScreen; |
32 |
import org.distorted.library.EffectNames; |
|
32 | 33 |
import org.distorted.library.MeshFlat; |
33 | 34 |
import org.distorted.library.DistortedTexture; |
34 | 35 |
import org.distorted.library.DistortedEffects; |
... | ... | |
213 | 214 |
mScreen.detachAll(); |
214 | 215 |
mScreen.attach(texture,mEffects,mesh); |
215 | 216 |
|
217 |
DistortedEffects.enableEffect(EffectNames.DISTORT); |
|
218 |
DistortedEffects.enableEffect(EffectNames.SINK); |
|
219 |
DistortedEffects.enableEffect(EffectNames.SWIRL); |
|
220 |
|
|
216 | 221 |
try |
217 | 222 |
{ |
218 | 223 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.