Project

General

Profile

« Previous | Next » 

Revision 5bf698ee

Added by Leszek Koltunski almost 8 years ago

Tesselate DistortedBitmaps better - now all the triangles long edges point at the center of the bitmap, which makes z-distortions look much better!

View differences:

src/main/java/org/distorted/library/Distorted.java
349 349
    GLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);
350 350
    GLES20.glEnable(GLES20.GL_CULL_FACE);
351 351
    GLES20.glCullFace(GLES20.GL_BACK);
352
    GLES20.glFrontFace(GLES20.GL_CW);
352 353

  
353 354
    mTextureUniformH = GLES20.glGetUniformLocation(mProgramH, "u_Texture");
354 355
    

Also available in: Unified diff