Papervision3D ~ MaterialsList and Cube

import org.papervision3d.materials.utils.MaterialsList;
import org.papervision3d.objects.primitives.Cube;

var materials:MaterialsList = new MaterialsList(
{
   front:  new ColorMaterial(0xFFFFFF, 1),
   back:   new ColorMaterial(0xFF0000, 1),
   right:  new ColorMaterial(0x00FF00, 1),
   left:   new ColorMaterial(0x333333, 1),
   top:    new ColorMaterial(0x0000FF, 1),
   bottom: new ColorMaterial(0xFFFF00, 1)
});

var cube:Cube = new Cube(materials, 100, 50, 75);

http://osflash.org/pipermail/papervision3d_osflash.org/2007-October/012011.html

沒有留言: