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/sizechange/SizeChangeEffectRound.java
26 26
import org.distorted.library.type.Dynamic3D;
27 27
import org.distorted.library.type.Static3D;
28 28

  
29
import static org.distorted.magic.RubikRenderer.TEXTURE_SIZE;
29
import static org.distorted.magic.RubikRenderer.NODE_MESH_SIZE;
30 30

  
31 31
///////////////////////////////////////////////////////////////////////////////////////////////////
32 32

  
......
34 34
  {
35 35
  public int createEffectsPhase0(int duration)
36 36
    {
37
    float X = TEXTURE_SIZE/3;
37
    float X = NODE_MESH_SIZE /3;
38 38

  
39 39
    mCubeEffectPosition[0] = new int[] {6,7};
40 40
    mCubeEffects[0]        = new Effect[mCubeEffectPosition[0].length];
......
58 58

  
59 59
  public int createEffectsPhase1(int duration)
60 60
    {
61
    float X = TEXTURE_SIZE/3;
61
    float X = NODE_MESH_SIZE /3;
62 62

  
63 63
    mCubeEffectPosition[1] = new int[] {6,7};
64 64
    mCubeEffects[1]        = new Effect[mCubeEffectPosition[1].length];

Also available in: Unified diff