Revision 6637d0f2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/monalisa/MonaLisaRenderer.java | ||
---|---|---|
30 | 30 |
import org.distorted.library.DistortedEffects; |
31 | 31 |
import org.distorted.library.DistortedScreen; |
32 | 32 |
import org.distorted.library.DistortedTexture; |
33 |
import org.distorted.library.EffectNames; |
|
33 | 34 |
import org.distorted.library.MeshFlat; |
34 | 35 |
import org.distorted.library.EffectTypes; |
35 | 36 |
import org.distorted.library.type.Dynamic3D; |
... | ... | |
139 | 140 |
mScreen.detachAll(); |
140 | 141 |
mScreen.attach(texture,mEffects,mesh); |
141 | 142 |
|
143 |
DistortedEffects.enableEffect(EffectNames.DISTORT); |
|
144 |
|
|
142 | 145 |
try |
143 | 146 |
{ |
144 | 147 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.