1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../" />
- <script src="list.js"></script>
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- [page:Material] → [page:ShaderMaterial] →
- <h1>[name]</h1>
- <div class="desc">
- This material can recieve shadows, but otherwise is completely transparent.
- </div>
- <h3>Example</h3>
- [example:webgl_geometry_spline_editor gemoetry / spline / editor]
- <code>
- 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 );
- </code>
- <h2>Constructor</h2>
- <h3>[name]( )</h3>
- <h2>Properties</h2>
- <div>See the base [page:Material] and [page:ShaderMaterial] classes for common properties.</div>
- <h3>[property:Boolean lights]</h3>
- <div>Whether the material is affected by lights. Default is *true*.</div>
- <h3>[property:Boolean transparent]</h3>
- <div>Defines whether this material is transparent. Default is *true*.</div>
- <h2>Methods</h2>
- <div>See the base [page:Material] and [page:ShaderMaterial] classes for common methods.</div>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|