Project

General

Profile

« Previous | Next » 

Revision 0ce6fcef

Added by Leszek Koltunski over 8 years ago

Cull back faces of triangles.

View differences:

src/main/java/org/distorted/library/Distorted.java
347 347
    GLES20.glDepthFunc(GLES20.GL_LEQUAL);
348 348
    GLES20.glEnable(GLES20.GL_BLEND);
349 349
    GLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);
350
    GLES20.glEnable(GLES20.GL_CULL_FACE);
351
    GLES20.glCullFace(GLES20.GL_BACK);
350 352

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

Also available in: Unified diff