StereoCamera.html 1.9 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. <div class="desc">
  13. Dual [page:PerspectiveCamera PerspectiveCamera]s used for effects such as
  14. [link:https://en.wikipedia.org/wiki/Anaglyph_3D 3D Anaglyph] or [link:https://en.wikipedia.org/wiki/parallax_barrier Parallax Barrier].
  15. </div>
  16. <h2>Example</h2>
  17. <div>[example:webgl_effects_anaglyph effects / anaglyph ]</div>
  18. <div>[example:webgl_effects_parallaxbarrier effects / parallaxbarrier ]</div>
  19. <div>[example:webgl_effects_stereo effects / stereo ]</div>
  20. <div>
  21. This class is used internally in the files<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. used in the above examples.
  26. </div>
  27. <h2>Constructor</h2>
  28. <h3>[name]( )</h3>
  29. <h2>Properties</h2>
  30. <h3>[property:Float aspect]</h3>
  31. <div>Default is *1*.</div>
  32. <h3>[property:Float eyeSep]</h3>
  33. <div>Default is *0.064*.</div>
  34. <h3>[property:PerspectiveCamera cameraL]</h3>
  35. <div>Left camera.</div>
  36. <h3>[property:PerspectiveCamera cameraR]</h3>
  37. <div>Right camera.</div>
  38. <h2>Methods</h2>
  39. <h3>[method:null update]( camera )</h3>
  40. <div>
  41. Update the stereo cameras based on the camera passed in.
  42. </div>
  43. <h2>Source</h2>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </body>
  46. </html>