StereoCamera.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. 双[page:PerspectiveCamera PerspectiveCamera](透视摄像机)用于
  14. [link:https://en.wikipedia.org/wiki/Anaglyph_3D 3D Anaglyph](立体影像)or [link:https://en.wikipedia.org/wiki/parallax_barrier Parallax Barrier](视差屏障)等效果。
  15. </p>
  16. <h2>例子</h2>
  17. <p>[example:webgl_effects_anaglyph effects / anaglyph ]</p>
  18. <p>[example:webgl_effects_parallaxbarrier effects / parallaxbarrier ]</p>
  19. <p>[example:webgl_effects_stereo effects / stereo ]</p>
  20. <p>
  21. 这个类在内部使用的文件<br /><br />
  22. [link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/AnaglyphEffect.js examples/js/effects/AnaglyphEffect.js]<br /><br />
  23. [link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/ParallaxBarrierEffect.js examples/js/effects/ParallaxBarrierEffect.js]<br /><br />
  24. [link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/StereoEffect.js examples/js/effects/StereoEffect.js]<br /><br />
  25. 在上面的例子中使用。
  26. </p>
  27. <h2>构造函数</h2>
  28. <h3>[name]( )</h3>
  29. <h2>Properties</h2>
  30. <h3>[property:Float aspect]</h3>
  31. <p>默认值为*1*。</p>
  32. <h3>[property:Float eyeSep]</h3>
  33. <p>默认值为*0.064*。</p>
  34. <h3>[property:PerspectiveCamera cameraL]</h3>
  35. <p>左摄像机。这将添加到[page:Layers layer 1] - 要被左摄像机渲染的对象也必须添加到此层。</p>
  36. <h3>[property:PerspectiveCamera cameraR]</h3>
  37. <p>右摄像机。这被添加到[page:Layers layer 2] - 要被右摄像机渲染的对象也必须添加到该层。</p>
  38. <h2>方法</h2>
  39. <h3>[method:null update]( [param:PerspectiveCamera camera] )</h3>
  40. <p>
  41. 根据传入的摄像机更新立体摄像机。
  42. </p>
  43. <h2>源代码</h2>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </body>
  46. </html>