Revision 6637d0f2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java | ||
---|---|---|
28 | 28 |
import org.distorted.library.Distorted; |
29 | 29 |
import org.distorted.library.DistortedEffects; |
30 | 30 |
import org.distorted.library.DistortedScreen; |
31 |
import org.distorted.library.EffectNames; |
|
31 | 32 |
import org.distorted.library.MeshFlat; |
32 | 33 |
import org.distorted.library.DistortedTexture; |
33 | 34 |
import org.distorted.library.EffectTypes; |
... | ... | |
135 | 136 |
mScreen.detachAll(); |
136 | 137 |
mScreen.attach(texture, mEffects, mesh ); |
137 | 138 |
|
139 |
DistortedEffects.enableEffect(EffectNames.DISTORT); |
|
140 |
DistortedEffects.enableEffect(EffectNames.SINK); |
|
141 |
DistortedEffects.enableEffect(EffectNames.PINCH); |
|
142 |
DistortedEffects.enableEffect(EffectNames.SWIRL); |
|
143 |
DistortedEffects.enableEffect(EffectNames.CHROMA); |
|
144 |
DistortedEffects.enableEffect(EffectNames.SMOOTH_CHROMA); |
|
145 |
DistortedEffects.enableEffect(EffectNames.CONTRAST); |
|
146 |
|
|
138 | 147 |
try |
139 | 148 |
{ |
140 | 149 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.