Project

General

Profile

« Previous | Next » 

Revision 7bebb196

Added by Leszek Koltunski over 5 years ago

Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).

View differences:

src/main/java/org/distorted/library/effect/VertexEffectSwirl.java
51 51
    mRegion.get(uniforms,index+REGION_OFFSET,currentDuration,step);
52 52
    boolean ret = mSwirl.get(uniforms,index,currentDuration,step);
53 53

  
54
    uniforms[index  ] = (float)(Math.PI*uniforms[index]/180);
55
    uniforms[index+REGION_OFFSET+1] =-uniforms[index+REGION_OFFSET+1];  // region's y
54
    uniforms[index] = (float)(Math.PI*uniforms[index]/180);
56 55

  
57 56
    return ret;
58 57
    }

Also available in: Unified diff