Revision 687263cc
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/glow/GlowRenderer.java | ||
---|---|---|
66 | 66 |
|
67 | 67 |
mRootW = LEAF_SIZE; |
68 | 68 |
mRootH = LEAF_SIZE; |
69 |
mLeaf = new DistortedTexture(mRootW,mRootH);
|
|
69 |
mLeaf = new DistortedTexture(); |
|
70 | 70 |
mMove = new Static3D(0,0,0); |
71 | 71 |
mScale = new Static3D(1,1,1); |
72 | 72 |
mRadius= new Static1D(25); |
... | ... | |
74 | 74 |
|
75 | 75 |
mGlow = new PostprocessEffectGlow(mRadius,mColor); |
76 | 76 |
|
77 |
DistortedEffects effects = new DistortedEffects(); |
|
77 |
DistortedEffects effects = new DistortedEffects(mRootW,mRootH,0);
|
|
78 | 78 |
effects.apply(new MatrixEffectScale(mScale)); |
79 | 79 |
effects.apply(new MatrixEffectMove(mMove)); |
80 | 80 |
effects.apply(mGlow); |
Also available in: Unified diff
Move the 'pre-multiply mesh before applying any effects' thing from [(Xsize of texture, Ysize of texture) x Mesh's zFactor] to Effects.setStretch(sx,sy,sz)