Revision 6637d0f2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java | ||
---|---|---|
30 | 30 |
import org.distorted.library.DistortedEffects; |
31 | 31 |
import org.distorted.library.DistortedScreen; |
32 | 32 |
import org.distorted.library.DistortedNode; |
33 |
import org.distorted.library.EffectNames; |
|
33 | 34 |
import org.distorted.library.EffectTypes; |
34 | 35 |
import org.distorted.library.MeshFlat; |
35 | 36 |
import org.distorted.library.type.Dynamic1D; |
... | ... | |
209 | 210 |
} |
210 | 211 |
|
211 | 212 |
mLeaf.setTexture(leaf); |
212 |
|
|
213 |
|
|
214 |
DistortedEffects.enableEffect(EffectNames.CHROMA); |
|
215 |
|
|
213 | 216 |
try |
214 | 217 |
{ |
215 | 218 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.