MaterialShaderMaterial

ShadowMaterial

This material can receive shadows, but otherwise is completely transparent.

Example

geometry / spline / editor

var planeGeometry = new v3d.PlaneGeometry(2000, 2000); planeGeometry.rotateX(- Math.PI / 2); var planeMaterial = new v3d.ShadowMaterial(); planeMaterial.opacity = 0.2; var plane = new v3d.Mesh(planeGeometry, planeMaterial); plane.position.y = -200; plane.receiveShadow = true; scene.add(plane);

Constructor

ShadowMaterial(parameters : Object)

parameters - (optional) an object with one or more properties defining the material's appearance. Any property of the material (including any property inherited from Material and ShaderMaterial) can be passed in here.

Properties

See the base Material and ShaderMaterial classes for common properties.

.transparent : Boolean

Defines whether this material is transparent. Default is true.

Methods

See the base Material and ShaderMaterial classes for common methods.

Source

For more info on how to obtain the source code of this module see this page.