Revision 6637d0f2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/catanddog/CatAndDogRenderer.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.Dynamic1D; |
... | ... | |
119 | 120 |
mScreen.detachAll(); |
120 | 121 |
mScreen.attach(texture,mEffects,mMesh); |
121 | 122 |
|
123 |
DistortedEffects.enableEffect(EffectNames.SMOOTH_CHROMA); |
|
124 |
DistortedEffects.enableEffect(EffectNames.ALPHA); |
|
125 |
|
|
122 | 126 |
try |
123 | 127 |
{ |
124 | 128 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.