Revision 6637d0f2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
32 | 32 |
import org.distorted.library.DistortedNode; |
33 | 33 |
import org.distorted.library.DistortedScreen; |
34 | 34 |
import org.distorted.library.Distorted; |
35 |
import org.distorted.library.EffectNames; |
|
35 | 36 |
import org.distorted.library.MeshCubes; |
36 | 37 |
import org.distorted.library.MeshFlat; |
37 | 38 |
import org.distorted.library.DistortedTexture; |
... | ... | |
189 | 190 |
chromaDyn.add(new Static1D(1.0f)); |
190 | 191 |
|
191 | 192 |
mEffects.chroma(chromaDyn, new Static3D(0,0,1) ); |
192 |
|
|
193 |
|
|
194 |
DistortedEffects.enableEffect(EffectNames.SINK); |
|
195 |
DistortedEffects.enableEffect(EffectNames.CHROMA); |
|
196 |
|
|
193 | 197 |
try |
194 | 198 |
{ |
195 | 199 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.