away3d / away3d-core-fp11

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

OutlineMethod doesn't work normally in the latest dev branch #604

Closed daiwei1999 closed 10 years ago

daiwei1999 commented 11 years ago

If the material.bothSides is set to true, OutlineMethod doesn't work normally in the latest dev branch.

daiwei1999 commented 11 years ago

You can product this problem as below:

var material:ColorMaterial = new ColorMaterial(0x00FF00); material.bothSides = true; material.addMethod(new OutlineMethod(0xFF0000)); scene.addChild(new Mesh(new SphereGeometry(), material));

If you set material.bothSides to false, the outline can display normally.

gonchar commented 10 years ago

thank you for the issue!