StereoCamera.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. 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. </p>
  16. <h2>Example</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. 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. </p>
  27. <h2>Constructor</h2>
  28. <h3>[name]( )</h3>
  29. <h2>Properties</h2>
  30. <h3>[property:Float aspect]</h3>
  31. <p>Default is *1*.</p>
  32. <h3>[property:Float eyeSep]</h3>
  33. <p>Default is *0.064*.</p>
  34. <h3>[property:PerspectiveCamera cameraL]</h3>
  35. <p>Left camera. This is added to [page:Layers layer 1] - objects to be rendered
  36. by the left camera must also be added to this layer.</p>
  37. <h3>[property:PerspectiveCamera cameraR]</h3>
  38. <p>Right camera.This is added to [page:Layers layer 2] - objects to be rendered
  39. by the right camera must also be added to this layer.</p>
  40. <h2>Methods</h2>
  41. <h3>[method:null update]( [param:PerspectiveCamera camera] )</h3>
  42. <p>
  43. Update the stereo cameras based on the camera passed in.
  44. </p>
  45. <h2>Source</h2>
  46. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  47. </body>
  48. </html>