Revision 687263cc
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/effectqueue/EffectQueueRenderer.java | ||
---|---|---|
78 | 78 |
MatrixEffectScale scaleEffect = new MatrixEffectScale(mScale); |
79 | 79 |
|
80 | 80 |
mMesh = new MeshRectangles(MESH_QUALITY,MESH_QUALITY*texHeight/texWidth); |
81 |
mTexture = new DistortedTexture(texWidth,texHeight);
|
|
82 |
mEffects = new DistortedEffects(); |
|
81 |
mTexture = new DistortedTexture(); |
|
82 |
mEffects = new DistortedEffects(texWidth,texHeight,0);
|
|
83 | 83 |
mEffects.apply(scaleEffect); |
84 | 84 |
|
85 | 85 |
mScreen = new DistortedScreen(); |
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)