I’m trying to use an AlphaMaskMethod on a texture material. The texture I’m using for the AlphaMaskMethod as well as the rendered result is attached. I’m not seeing what I expected. Here’s my code:
var Plane001_Bitmap:Bitmap = Bitmap(new PlaneBitmap());
__planeMaterial = TextureMaterial( generateMaterial("material0", NaN , Plane001_Bitmap.bitmapData) );
TextureMaterial( __planeMaterial ).alphaBlending = true;
var alphaMaskTexture:BitmapTexture = new BitmapTexture( Bitmap( new GroundAlphaMask() ).bitmapData );
var alphaMaskMethod:AlphaMaskMethod = new AlphaMaskMethod( alphaMaskTexture );
TextureMaterial( __planeMaterial ).addMethod( alphaMaskMethod );