Project

General

Profile

« Previous | Next » 

Revision 5974d2ae

Added by Leszek Koltunski about 4 years ago

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)

View differences:

src/main/java/org/distorted/effect/scramble/ScrambleEffectRotations.java
30 30

  
31 31
import java.util.Random;
32 32

  
33
import static org.distorted.magic.RubikRenderer.TEXTURE_SIZE;
33
import static org.distorted.magic.RubikRenderer.NODE_MESH_SIZE;
34 34

  
35 35
///////////////////////////////////////////////////////////////////////////////////////////////////
36 36

  
......
78 78

  
79 79
    mCubeEffects[0] = new MatrixEffectQuaternion(dq, new Static3D(0,0,0));
80 80

  
81
    float Z = TEXTURE_SIZE/3;
81
    float Z = NODE_MESH_SIZE /3;
82 82

  
83 83
    Dynamic3D d0 = new Dynamic3D(duration, 0.5f);
84 84
    d0.setMode(Dynamic.MODE_PATH);

Also available in: Unified diff