Project

General

Profile

« Previous | Next » 

Revision 612d4511

Added by Leszek Koltunski over 1 year ago

change the way the coordinates of stickers are kept from float[2*N] to float[N][2]

View differences:

src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java
310 310

  
311 311
      int extraIndex    = 0;
312 312
      int extraVertices = 0;
313
      float[] vertices = { -A,-A, A,-A, A,A, -A,A };
313
      float[][] vertices = { {-A,-A}, {A,-A}, {A,A}, {-A,A} };
314 314

  
315 315
      float C = 2f;
316 316
      float[] bands = { 1.0f, 0.00f*C, 0.9f, 0.04f*C,  0.8f, 0.07f*C, 0.5f, 0.09f*C, 0.0f, 0.10f*C};

Also available in: Unified diff