Revision 6637d0f2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/mirror/MirrorRenderer.java | ||
---|---|---|
30 | 30 |
import org.distorted.library.DistortedFramebuffer; |
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.type.Dynamic3D; |
35 | 36 |
import org.distorted.library.type.Static1D; |
... | ... | |
195 | 196 |
mTextureMirror.setTexture(bitmapM); |
196 | 197 |
mTextureHead.setTexture(bitmapH); |
197 | 198 |
|
199 |
DistortedEffects.enableEffect(EffectNames.BRIGHTNESS); |
|
200 |
|
|
198 | 201 |
try |
199 | 202 |
{ |
200 | 203 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.