Project

General

Profile

« Previous | Next » 

Revision 226c8cfa

Added by Leszek Koltunski almost 4 years ago

Progress making it possible to apply Vertex Effects only to some Components of a Mesh.

View differences:

src/main/java/org/distorted/objects/RubikPyraminx.java
278 278

  
279 279
    VertexEffectSink   effect12= new VertexEffectSink( new Static1D(1.3f), center, region );
280 280

  
281
    effect4.setMeshAssociation(14);  // apply to mesh[1], [2] and [3]
282
    effect5.setMeshAssociation( 2);  // apply only to mesh[1]
283
    effect6.setMeshAssociation( 4);  // apply only to mesh[2]
284
    effect7.setMeshAssociation( 8);  // apply only to mesh[3]
281
    effect4.setMeshAssociation(-1,14);  // apply to mesh[1], [2] and [3]
282
    effect5.setMeshAssociation(-1, 2);  // apply only to mesh[1]
283
    effect6.setMeshAssociation(-1, 4);  // apply only to mesh[2]
284
    effect7.setMeshAssociation(-1, 8);  // apply only to mesh[3]
285 285

  
286 286
    result.apply(effect1);
287 287
    result.apply(effect2);

Also available in: Unified diff