Material →
ShadowMaterial
This material can receive shadows, but otherwise is completely transparent.
Code Example
const geometry = new THREE.PlaneGeometry( 2000, 2000 ); geometry.rotateX( -
Math.PI / 2 ); const material = new THREE.ShadowMaterial(); material.opacity =
0.2; const plane = new THREE.Mesh( geometry, material ); plane.position.y =
-200; plane.receiveShadow = true; scene.add( plane );
Examples
[example:webgl_geometry_spline_editor geometry / spline / editor]
Constructor
ShadowMaterial
function ShadowMaterial( parameters: Object ): void;
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) can be passed in here.
Properties
See the base Material classes for common properties.
color
color: Color;
Color of the material, by default set to black (0x000000).
fog
fog: Boolean;
Whether the material is affected by fog. Default is true.
transparent
transparent: Boolean;
Defines whether this material is transparent. Default is true.
Methods
See the base Material classes for common methods.