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/win/WinEffectGlow.java
28 28
import org.distorted.library.type.Static3D;
29 29
import org.distorted.library.type.Static4D;
30 30

  
31
import static org.distorted.magic.RubikRenderer.TEXTURE_SIZE;
31
import static org.distorted.magic.RubikRenderer.NODE_MESH_SIZE;
32 32

  
33 33
///////////////////////////////////////////////////////////////////////////////////////////////////
34 34

  
......
63 63
    degreeDyn.add(new Static1D(2.5f));
64 64
    degreeDyn.add(new Static1D(1.0f));
65 65

  
66
    float centerPoint = TEXTURE_SIZE*0.5f;
66
    float centerPoint = NODE_MESH_SIZE *0.5f;
67 67
    Static3D center = new Static3D(centerPoint,centerPoint,centerPoint);
68 68

  
69 69
    mNodeEffects[1] = new VertexEffectSink(degreeDyn,center);

Also available in: Unified diff