File: ShadowMaterial.md | Updated: 11/15/2025
This material can receive shadows, but otherwise is completely transparent.
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 );
Constructs a new shadow material.
parameters | An object with one or more properties defining the material's appearance. Any property of the material (including any property from inherited materials) can be passed in here. Color values can be passed any type of value accepted by Color#set.
---|---
Color of the material.
Default is (0,0,0).
Whether the material is affected by fog or not.
Default is true.
This flag can be used for type testing.
Default is true.
Overwritten since shadow materials are transparent by default.
Default is true.
Overrides: Material#transparent