Revision 96345c94
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/singlemesh/SingleMeshRenderer.java | ||
---|---|---|
358 | 358 |
for(int i=0; i<NUM_CUBITS; i++) |
359 | 359 |
{ |
360 | 360 |
cubits[i].apply( new MatrixEffectMove(CUBIT_MOVES[i]), 1,0); |
361 |
cubits[i].setTextureMap(TEXTURE_MAP[i]); |
|
361 |
cubits[i].setTextureMap(TEXTURE_MAP[i],0);
|
|
362 | 362 |
} |
363 | 363 |
|
364 | 364 |
MeshBase result = new MeshJoined(cubits); |
Also available in: Unified diff
Extend the MeshBase.setTextureMaps API so that we are able to set a single texture map to a single texture component, or a few consecutive at a time, not necessarily starting from component 0.