Papervision3D- Tiling Materials »

Papervision3D- Creating a Composite Material

February 11th, 2008 . Posted by brad in Flash, Papervision3D

A composite material allows you to layer multiple simple materials in a new “combined” material:

var wireMat:WireframeMaterial = new WireframeMaterial(0xCCCCFF);
var colorMat:ColorMaterial = new ColorMaterial(0x00FFCC);
var compMat:CompositeMaterial = new CompositeMaterial();
compMat.addMaterial(wireMat);
compMat.addMaterial(colorMat);

composite material

Example
Source



5 Responses to “Papervision3D- Creating a Composite Material”


Add Comment

Comment