[page:Material] → [page:ShaderMaterial] →
[name]
This material can recieve shadows, but otherwise is completely transparent.
Example
[example:webgl_geometry_spline_editor gemoetry / spline / editor]
var planeGeometry = new THREE.PlaneGeometry( 2000, 2000 );
planeGeometry.rotateX( - Math.PI / 2 );
var planeMaterial = new THREE.ShadowMaterial();
planeMaterial.opacity = 0.2;
var plane = new THREE.Mesh( planeGeometry, planeMaterial );
plane.position.y = -200;
plane.receiveShadow = true;
scene.add( plane );
Constructor
[name]( )
Properties
See the base [page:Material] and [page:ShaderMaterial] classes for common properties.
[property:Boolean lights]
Whether the material is affected by lights. Default is *true*.
[property:Boolean transparent]
Defines whether this material is transparent. Default is *true*.
Methods
See the base [page:Material] and [page:ShaderMaterial] classes for common methods.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]