, Sr. Member
No luck with the BlendMode either, it just becomes all transparent.
Note that I also use a transparent view background to get full transparency.
Here’s some of my code if it helps:
view.camera.lens = new OrthographicLens(2.4);
view.camera.lens.near = 0;
view.camera.lens.far = 150;
view.camera.position = new Vector3D(100, 60, 0);
view.camera.lookAt(new Vector3D(0, 1, 0));
sunLight = new DirectionalLight(-0.1, -1, 0.1);
var shadowMapper:NearDirectionalShadowMapper = new NearDirectionalShadowMapper(1);
shadowMapper.autoUpdateShadows = true;
sunLight.shadowMapper = shadowMapper;
sunLight.diffuse = 0.3;
sunLight.ambient = 0.9;
sunLight.specular = 0;
sunLight.color = 0xFFFFFF;
sunLight.ambientColor = 0xFFFFFF;
light = new StaticLightPicker([sunLight]);
view.scene.addChild(sunLight);
defaultBackground = new BitmapTexture(new BitmapData(32, 32, true, 0x00000000));
view.background = defaultBackground;
var floorMaterial:ColorMaterial = new ColorMaterial(0xFFFFFF, 1);
floorMaterial.blendMode = BlendMode.MULTIPLY;
var shadowMapMethod:FilteredShadowMapMethod = new FilteredShadowMapMethod(sunLight);
shadowMapMethod.epsilon = 3;
floorMaterial.shadowMethod = shadowMapMethod;
floorMaterial.lightPicker = light;
floor = new Mesh(new PlaneGeometry(2, 2), floorMaterial);
view.scene.addChild(floor);