Revision 6637d0f2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/wind/WindRenderer.java | ||
---|---|---|
27 | 27 |
import org.distorted.examples.R; |
28 | 28 |
import org.distorted.library.Distorted; |
29 | 29 |
import org.distorted.library.DistortedScreen; |
30 |
import org.distorted.library.EffectNames; |
|
30 | 31 |
import org.distorted.library.MeshCubes; |
31 | 32 |
import org.distorted.library.DistortedEffects; |
32 | 33 |
import org.distorted.library.DistortedTexture; |
... | ... | |
128 | 129 |
|
129 | 130 |
mTexture.setTexture(bitmap); |
130 | 131 |
|
132 |
DistortedEffects.enableEffect(EffectNames.DEFORM); |
|
133 |
DistortedEffects.enableEffect(EffectNames.WAVE); |
|
134 |
|
|
131 | 135 |
try |
132 | 136 |
{ |
133 | 137 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.