Cast shadow on transparent plane?

Software: Away3D 4.x

chocobo_green, Jr. Member
Posted: 01 February 2013 03:49 PM   Total Posts: 38

I want to use the shadow, but not the floor. I set the floor.alpha=0 but the shadow is also gone. How do I see just the shadow?

   

movieclip, Newbie
Posted: 30 June 2015 07:20 AM   Total Posts: 10   [ # 1 ]

Set multiply blendMode for the transparent floor

var material:ColorMaterial = new ColorMaterial(0xffffff, 0);
material.lightPicker = _lightPicker;
material.shadowMethod = new HardShadowMapMethod(_light);

material.blendMode = BlendMode.MULTIPLY;

material.shadowMethod.alpha = 0.95; //alpha for shadows

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X