Posted By

allnatural on 04/14/09


papervision pv3d

Versions (?)

Composite Materials in PV3D (Multiple Materials On One Object)

 / Published in: ActionScript 3


Quick & easy way to add multiple materials to a single object.

  1. var wireMat:WireframeMaterial = new WireframeMaterial(0xCCCCFF);
  2. var colorMat:ColorMaterial = new ColorMaterial(0x00FFCC);
  3. var compMat:CompositeMaterial = new CompositeMaterial();
  4. compMat.addMaterial(wireMat);
  5. compMat.addMaterial(colorMat);

Report this snippet  

You need to login to post a comment.