Revision a39e8df4
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
341 | 341 |
int extraVertices = 0; |
342 | 342 |
|
343 | 343 |
float[] v1 = new float[] { -A,-A, A,-A, A, A, -A, A }; |
344 |
// float[] v2 = new float[] { A,-A, 2*A,-A, 2*A, A, A, A }; |
|
345 |
|
|
346 |
/* |
|
344 |
float[] v2 = new float[] { A,-A, 2*A,-A, 2*A, A, A, A }; |
|
347 | 345 |
float[] v3 = new float[] {-3*A,-A, -A,-A, -A, A, -3*A, A }; |
348 | 346 |
float[] v4 = new float[] { -A, A, A, A, A,3*A, -A,3*A }; |
349 | 347 |
float[] v5 = new float[] {-3*A, A, -A, A, -A,3*A, -3*A,3*A }; |
350 |
*/ |
|
351 |
float[][] vertices = new float[][] {v1/*,v2,v3,v4,v5*/};
|
|
348 |
|
|
349 |
float[][] vertices = new float[][] {v1,v2,v3,v4,v5};
|
|
352 | 350 |
/* |
353 | 351 |
float[] c1 = new float[] { 0,0 }; |
354 | 352 |
float[] c2 = new float[] { 1.5f*A,0 }; |
... | ... | |
358 | 356 |
|
359 | 357 |
float[][] centers = new float[][] { c1,c2,c3,c4,c5 }; |
360 | 358 |
*/ |
361 |
float C = 1f;
|
|
362 |
float[] bands = new float[] { 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};
|
|
359 |
float C = 2f;
|
|
360 |
float[] bands = new float[] { 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};
|
|
363 | 361 |
|
364 | 362 |
/* |
365 | 363 |
float B = 0.1f; |
Also available in: Unified diff
Fixes for MeshMultigon. Perfect!