Revision 5974d2ae
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/object/RubikObjectList.java | ||
---|---|---|
25 | 25 |
import org.distorted.library.type.Static4D; |
26 | 26 |
import org.distorted.magic.R; |
27 | 27 |
|
28 |
import static org.distorted.magic.RubikRenderer.TEXTURE_SIZE;
|
|
28 |
import static org.distorted.magic.RubikRenderer.NODE_MESH_SIZE;
|
|
29 | 29 |
|
30 | 30 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
31 | 31 |
|
... | ... | |
84 | 84 |
|
85 | 85 |
public RubikObject create(Static4D quatCur, Static4D quatAcc) |
86 | 86 |
{ |
87 |
DistortedTexture texture = new DistortedTexture(TEXTURE_SIZE,TEXTURE_SIZE);
|
|
88 |
DistortedEffects effects = new DistortedEffects(); |
|
87 |
DistortedTexture texture = new DistortedTexture(); |
|
88 |
DistortedEffects effects = new DistortedEffects(NODE_MESH_SIZE,NODE_MESH_SIZE,0);
|
|
89 | 89 |
MeshRectangles mesh = new MeshRectangles(20,20); // mesh of the node, not of the cubits |
90 | 90 |
|
91 | 91 |
return new RubikCube(mObjectSize, quatCur, quatAcc, texture, mesh, effects); |
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)