Composite Materials in PV3D (Multiple Materials On One Object)

/ Published in: ActionScript 3
Save to your folder(s)

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

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.