«
Previous
|
Next
»
Revision 30f337e5
Added by Leszek Koltunski about 2 months ago
- ID 30f337e50a7d5d83c0419732cc2f896aeef67cee
- Parent c31aa527
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
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}; |
317 |
/* |
|
318 |
int numBands = 5; |
|
319 |
float[] bands = new float[2*numBands]; |
|
320 | 317 |
|
321 |
for(int i=0; i<numBands; i++) |
|
322 |
{ |
|
323 |
bands[2*i ] = 1 + i/(1.0f-numBands); |
|
324 |
bands[2*i+1] = B/(numBands-1)*i; |
|
325 |
} |
|
326 |
*/ |
|
327 | 318 |
mMesh = new MeshPolygon(vertices,bands,extraIndex,extraVertices,0.0f,0.0f); |
328 | 319 |
mMesh.setEffectAssociation(0,0,0); |
329 | 320 |
} |
... | ... | |
495 | 486 |
} |
496 | 487 |
catch(IOException e) |
497 | 488 |
{ |
498 |
android.util.Log.e("MeshFile", "Error closing InputStream: "+e.toString());
|
|
489 |
android.util.Log.e("MeshFile", "Error closing InputStream: "+ e);
|
|
499 | 490 |
} |
500 | 491 |
} |
501 | 492 |
|
Also available in: Unified diff
Lint