Revision 687263cc
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/multiblur/MultiblurRenderer.java | ||
---|---|---|
94 | 94 |
for(int i=0; i<NUM_OBJECTS; i++) |
95 | 95 |
{ |
96 | 96 |
mMoveVector[i] = new Static3D(0,0,0); |
97 |
effects[i] = new DistortedEffects(); |
|
97 |
effects[i] = new DistortedEffects(OBJ_SIZE,OBJ_SIZE,OBJ_SIZE);
|
|
98 | 98 |
mBlurStatus[i] = false; |
99 | 99 |
} |
100 | 100 |
|
... | ... | |
102 | 102 |
|
103 | 103 |
MeshCubes mesh = new MeshCubes(1,1,1); |
104 | 104 |
|
105 |
mTex1 = new DistortedTexture(OBJ_SIZE,OBJ_SIZE);
|
|
106 |
mTex2 = new DistortedTexture(OBJ_SIZE,OBJ_SIZE);
|
|
105 |
mTex1 = new DistortedTexture(); |
|
106 |
mTex2 = new DistortedTexture(); |
|
107 | 107 |
|
108 | 108 |
mQuat1 = new Static4D(0,0,0,1); // unity |
109 | 109 |
mQuat2 = new Static4D(0,0,0,1); // quaternions |
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)