away3d / away3d-core-fp11

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

AlphaMaskMethod is broken #679

Open rdoi opened 10 years ago

rdoi commented 10 years ago

The current AlphaMaskMethod is broken in the current release (v4.1.6).

Of course we found out about the "undocumented" requirement of material.alphaBlending = true , but that was not enough.

Digging further, we managed to get it working forcing material.preserveAlpha=false in ShaderCompiler.compileMethods(), based on a post in the forum: http://away3d.com/forum/viewthread/4021/

Although the above hack makes the method work as intended, we still have the already known alphaBlending z-order problem...