Revision 6637d0f2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/save/SaveRenderer.java | ||
---|---|---|
34 | 34 |
import org.distorted.library.DistortedEffects; |
35 | 35 |
import org.distorted.library.DistortedScreen; |
36 | 36 |
import org.distorted.library.DistortedTexture; |
37 |
import org.distorted.library.EffectNames; |
|
37 | 38 |
import org.distorted.library.MeshFlat; |
38 | 39 |
import org.distorted.library.DistortedFramebuffer; |
39 | 40 |
import org.distorted.library.EffectTypes; |
... | ... | |
255 | 256 |
mScreen.detachAll(); |
256 | 257 |
mScreen.attach(texture,mEffects,mesh); |
257 | 258 |
|
259 |
DistortedEffects.enableEffect(EffectNames.SINK); |
|
260 |
|
|
258 | 261 |
try |
259 | 262 |
{ |
260 | 263 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.