Revision 96345c94
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/meshjoin/MeshJoinRenderer.java | ||
---|---|---|
222 | 222 |
Static4D[] textureMaps = new Static4D[MESHES]; |
223 | 223 |
for(int i=0; i<MESHES; i++) textureMaps[i] = new Static4D(i*0.25f,0.0f,0.25f,1.0f); |
224 | 224 |
MeshBase result = new MeshJoined(meshes); |
225 |
result.setTextureMap(textureMaps); |
|
225 |
result.setTextureMap(textureMaps,0);
|
|
226 | 226 |
|
227 | 227 |
Static3D a0 = new Static3D( 0, 1, 0 ); |
228 | 228 |
Static3D a1 = new Static3D( 0, -1.0f/3, 2*SQ2/3 ); |
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.