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/magic/RubikRenderer.java
40 40
public class RubikRenderer implements GLSurfaceView.Renderer, EffectListener
41 41
{
42 42
    static final float CAMERA_DISTANCE = 0.6f;  // 0.6 of the length of min(scrHeight,scrWidth)
43
    public static final int TEXTURE_SIZE = 600;
43
    public static final int NODE_MESH_SIZE = 600;
44 44

  
45 45
    private RubikSurfaceView mView;
46 46
    private DistortedScreen mScreen;

Also available in: Unified diff