123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <!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:Object3D] →
- <h1>半球光辅助工具([name])</h1>
- <p class="desc">
- 为[page:HemisphereLight HemisphereLight]创建一个由spherical [page:Mesh](球状网格)所组成的视觉辅助对象。
- </p>
- <h3>示例</h3>
- <code>
- var light = new THREE.HemisphereLight( 0xffffbb, 0x080820, 1 );
- var helper = new THREE.HemisphereLightHelper( light, 5 );
- scene.add( helper );
- </code>
- <h2>构造器</h2>
- <h3>[name]( [param:HemisphereLight light], [param:Number sphereSize], [param:Hex color] )</h3>
- <p>
- [page:HemisphereLight light] -- 将要用于可视化的光线。<br /><br />
- [page:Number size] -- 用于表示可视化的光线的网格大小。<br /><br />
- [page:Hex color] -- (可选)如果没有设置这个值,辅助工具将会使用光线本身的颜色。
- </p>
- <h2>属性</h2>
- <p>请参阅其基类[page:Object3D]来查看共有属性。</p>
- <h3>[property:HemisphereLight light]</h3>
- <p>对被可视化的HemisphereLight的引用。</p>
- <h3>[property:object matrix]</h3>
- <p>hemisphereLight中[page:Object3D.matrixWorld matrixWorld]的引用。</p>
- <h3>[property:object matrixAutoUpdate]</h3>
- <p>
- 请参阅[page:Object3D.matrixAutoUpdate]。
- 在这里将这个值设为*false*,因为辅助工具使用hemisphereLight中的[page:Object3D.matrixWorld matrixWorld]。
- </p>
- <h3>[property:hex color]</h3>
- <p>
- 颜色参数是在构造函数中传入的,默认值为*undefined*。
- 如果这个值发生了改变,则在下一次[page:.update update]被调用时,辅助工具的颜色将会更新。
- </p>
- <h2>方法</h2>
- <p>请参阅其基类[page:Object3D]来查看共有方法。</p>
- <h3>[method:null dispose]()</h3>
- <p>Dispose of the hemisphereLightHelper.</p>
- <h3>[method:null update]()</h3>
- <p>更新辅助工具,使其匹配[page:.light]的位置与方向。</p>
- <h2>源代码</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|