Project

General

Profile

« Previous | Next » 

Revision 82b62e04

Added by Leszek Koltunski over 1 year ago

one more fix for displaying normals.

View differences:

src/main/java/org/distorted/library/main/DistortedLibrary.java
599 599

  
600 600
      EffectQueue.send(queues, mMainOITProgramH, distance, mipmap, projection, inflate, 1 );
601 601
      GLES30.glDrawArrays(GLES30.GL_TRIANGLE_STRIP, 0, mesh.getNumVertices() );
602
      mMainOITProgram.stopUsingProgram();
603

  
604 602
      if( mesh.getShowNormals() ) displayNormals(projection,mesh);
603
      mMainOITProgram.stopUsingProgram();
605 604
      }
606 605
    }
607 606

  
src/main/java/org/distorted/library/mesh/MeshPolygon.java
337 337
    for(int polyBand=0; polyBand<mNumPolygonBands-1; polyBand++)
338 338
      for(int polyVertex=0; polyVertex<mNumPolygonVertices; polyVertex++)
339 339
        {
340
        android.util.Log.e("D", "creating strip polyBand="+polyBand+" polyVertex="+polyVertex+" : "+vertex);
340
       // android.util.Log.e("D", "creating strip polyBand="+polyBand+" polyVertex="+polyVertex+" : "+vertex);
341 341
        vertex = createBandStrip(vertex,polyBand,polyVertex,edgeShape[polyVertex],attribs1,attribs2);
342
        android.util.Log.e("D", "  "+vertex);
342
       // android.util.Log.e("D", "  "+vertex);
343 343
        }
344 344
    }
345 345

  

Also available in: Unified diff