TextureProjector intensity/alpha

Software: Away3D 4.x

Whypay, Newbie
Posted: 30 May 2013 07:26 PM   Total Posts: 12

I have a ball and its shadow. The shadow is created using the TextureProjector:

//Create projector:
_oProjector = new TextureProjector(Cast.bitmapTexture(new embedShadow().bitmapData));
_oProjectionMethod = new ProjectiveTextureMethod(_oProjector);

//Assign to material:
oMaterial.addMethod(_oProjectionMethod); 

Can I somehow adjust the intensity/alpha of the projected shadow? E.g. when the ball jumps up, the shadow fades to alpha = 0.2.

A workaround could be to exchange the bitmapdata, but maybe there’s a better way?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X