Revision 698ad0a8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/glow/GlowRenderer.java | ||
---|---|---|
32 | 32 |
import org.distorted.library.main.DistortedEffects; |
33 | 33 |
import org.distorted.library.main.DistortedScreen; |
34 | 34 |
import org.distorted.library.main.DistortedTexture; |
35 |
import org.distorted.library.mesh.MeshRectangles;
|
|
35 |
import org.distorted.library.mesh.MeshQuad;
|
|
36 | 36 |
import org.distorted.library.type.Static1D; |
37 | 37 |
import org.distorted.library.type.Static3D; |
38 | 38 |
import org.distorted.library.type.Static4D; |
... | ... | |
74 | 74 |
|
75 | 75 |
mGlow = new PostprocessEffectGlow(mRadius,mColor); |
76 | 76 |
|
77 |
DistortedEffects effects = new DistortedEffects(mRootW,mRootH,0);
|
|
77 |
DistortedEffects effects = new DistortedEffects(); |
|
78 | 78 |
effects.apply(new MatrixEffectScale(mScale)); |
79 | 79 |
effects.apply(new MatrixEffectMove(mMove)); |
80 | 80 |
effects.apply(mGlow); |
81 | 81 |
|
82 |
MeshQuad quad = new MeshQuad(); |
|
83 |
quad.setStretch(mRootW,mRootH,0); |
|
84 |
|
|
82 | 85 |
mScreen = new DistortedScreen(); |
83 |
mScreen.attach(mLeaf, effects, new MeshRectangles(1,1) );
|
|
86 |
mScreen.attach(mLeaf, effects, quad );
|
|
84 | 87 |
mScreen.glClearColor(1.0f, 1.0f, 1.0f, 1.0f); |
85 | 88 |
mScreen.showFPS(); |
86 | 89 |
} |
Also available in: Unified diff
Move the Effects.setStretch to Meshbase.setStretch