1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <script src="../../list.js"></script>
- <script src="../../page.js"></script>
- <link type="text/css" rel="stylesheet" href="../../page.css" />
- </head>
- <body>
- [page:Object3D] → [page:Light] →
- <h1>[name]</h1>
- <div class="desc">todo</div>
- <h2>Example</h2>
- <code>// white spotlight shining from the side, casting shadow
- var spotLight = new THREE.SpotLight( 0xffffff );
- spotLight.position.set( 100, 1000, 100 );
- spotLight.castShadow = true;
- spotLight.shadowMapWidth = 1024;
- spotLight.shadowMapHeight = 1024;
- spotLight.shadowCameraNear = 500;
- spotLight.shadowCameraFar = 4000;
- spotLight.shadowCameraFov = 30;
- scene.add( spotLight );</code>
- <h2>Constructor</h2>
- <h3>[name]()</h3>
- <h2>Properties</h2>
- <h3>.[page:Vector3 todo]</h3>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|