StereoCamera.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>立体相机([name])</h1>
  11. <p class="desc">
  12. 双透视摄像机(立体相机)常被用于创建[link:https://en.wikipedia.org/wiki/Anaglyph_3D 3D Anaglyph](3D立体影像)
  13. 或者[link:https://en.wikipedia.org/wiki/parallax_barrier Parallax Barrier](视差屏障)。
  14. </p>
  15. <h2>例子</h2>
  16. <p>
  17. [example:webgl_effects_anaglyph effects / anaglyph ]<br />
  18. [example:webgl_effects_parallaxbarrier effects / parallaxbarrier ]<br />
  19. [example:webgl_effects_stereo effects / stereo ]
  20. </p>
  21. <h2>构造器</h2>
  22. <h3>[name]( )</h3>
  23. <h2>属性</h2>
  24. <h3>[property:Float aspect]</h3>
  25. <p>默认值是*1*.</p>
  26. <h3>[property:Float eyeSep]</h3>
  27. <p>默认值是*0.064*.</p>
  28. <h3>[property:PerspectiveCamera cameraL]</h3>
  29. <p>左摄像机,它被加入到了[page:Layers layer 1]中 —— 需要被左摄像机渲染的物体也应当要加入到这一层中。</p>
  30. <h3>[property:PerspectiveCamera cameraR]</h3>
  31. <p>右摄像机,它被加入到了[page:Layers layer 2]中 —— 需要被右摄像机渲染的物体也应当要加入到这一层中。</p>
  32. <h2>方法</h2>
  33. <h3>[method:undefined update]( [param:PerspectiveCamera camera] )</h3>
  34. <p>
  35. 基于摄像机通过场景,更新立体摄像机。
  36. </p>
  37. <h2>源代码</h2>
  38. <p>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </p>
  41. </body>
  42. </html>