Revision 885b9cca
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/examples/bitmaptree/BitmapTreeRenderer.java | ||
---|---|---|
32 | 32 |
import org.distorted.library.effect.MatrixEffectMove; |
33 | 33 |
import org.distorted.library.effect.MatrixEffectRotate; |
34 | 34 |
import org.distorted.library.effect.MatrixEffectScale; |
35 |
import org.distorted.library.effect.VertexEffectDistort; |
|
35 | 36 |
import org.distorted.library.effect.VertexEffectSink; |
36 | 37 |
import org.distorted.library.main.DistortedEffects; |
37 | 38 |
import org.distorted.library.main.DistortedFramebuffer; |
... | ... | |
213 | 214 |
VertexEffectSink sink = new VertexEffectSink(sinkDyn, new Static3D(gridWidth/2,gridHeight/2, 0)); |
214 | 215 |
gridEffects.apply(sink); |
215 | 216 |
|
216 |
DistortedEffects.enableEffect(EffectName.SINK);
|
|
217 |
DistortedEffects.enableEffect(EffectName.CHROMA);
|
|
217 |
VertexEffectSink.enable();
|
|
218 |
FragmentEffectChroma.enable();
|
|
218 | 219 |
|
219 | 220 |
try |
220 | 221 |
{ |
Also available in: Unified diff
Move all the knowledge about Vertex and Fragment effects to their respective classes.