Revision 6637d0f2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/bean/BeanRenderer.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import org.distorted.library.DistortedEffects; |
31 | 31 |
import org.distorted.library.DistortedScreen; |
32 |
import org.distorted.library.EffectNames; |
|
32 | 33 |
import org.distorted.library.EffectTypes; |
33 | 34 |
import org.distorted.library.Distorted; |
34 | 35 |
import org.distorted.library.DistortedTexture; |
... | ... | |
156 | 157 |
mScreen.detachAll(); |
157 | 158 |
mScreen.attach(texture,mEffects,mesh); |
158 | 159 |
|
160 |
DistortedEffects.enableEffect(EffectNames.DISTORT); |
|
161 |
|
|
159 | 162 |
try |
160 | 163 |
{ |
161 | 164 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.