Revision 96345c94
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/deferredjob/DeferredJobRenderer.java | ||
---|---|---|
204 | 204 |
MeshBase[] tmp = new MeshBase[2]; |
205 | 205 |
|
206 | 206 |
tmp[0] = new MeshJoined(meshes); |
207 |
tmp[0].setTextureMap(lTextureMaps); |
|
207 |
tmp[0].setTextureMap(lTextureMaps,0);
|
|
208 | 208 |
|
209 | 209 |
VertexEffectMove effect0 = new VertexEffectMove ( new Static3D(0,0,0.5f) ); |
210 | 210 |
VertexEffectRotate effect1 = new VertexEffectRotate( new Static1D(180), new Static3D(1,0,0), new Static3D(0,0,0) ); |
... | ... | |
217 | 217 |
tmp[0].apply(effect1); |
218 | 218 |
|
219 | 219 |
tmp[1] = tmp[0].copy(true); |
220 |
tmp[1].setTextureMap(rTextureMaps); |
|
220 |
tmp[1].setTextureMap(rTextureMaps,0);
|
|
221 | 221 |
|
222 | 222 |
tmp[0].mergeEffComponents(); |
223 | 223 |
tmp[1].mergeEffComponents(); |
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.