away3d / away3d-core-fp11

Away3D engine for Flash Player 11
http://www.away3d.com
Other
640 stars 273 forks source link

MultiPassMaterial.bothSides does not work #598

Closed 80prozent closed 11 years ago

80prozent commented 11 years ago

atm, bothSides only seams to work for SinglePassMaterials.

var testSingleMaterial:ColorMaterial = new ColorMaterial() var testMultiMaterial:ColorMultiPassMaterial = new ColorMultiPassMaterial() testSingleMaterial.bothSides=true; testMultiMaterial.bothSides=true; var testMesh:Mesh = new Mesh(new CylinderGeometry(50,50,100,16,1,false,false),testMultiMaterial); scene.addChild(testMesh);

80prozent commented 11 years ago

I see that the multipassMaterial.bothSides do work if it is reapplied at a later time (set bothSides=true on next frame instead of right after creating the material)

DerSchmale commented 11 years ago

Fixed in dev.