StereoCamera.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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>Examples</h2>
  17. <p>
  18. [example:webgl_effects_anaglyph effects / anaglyph ]<br />
  19. [example:webgl_effects_parallaxbarrier effects / parallaxbarrier ]<br />
  20. [example:webgl_effects_stereo effects / stereo ]
  21. </p>
  22. <h2>Constructor</h2>
  23. <h3>[name]( )</h3>
  24. <h2>Properties</h2>
  25. <h3>[property:Float aspect]</h3>
  26. <p>Default is *1*.</p>
  27. <h3>[property:Float eyeSep]</h3>
  28. <p>Default is *0.064*.</p>
  29. <h3>[property:PerspectiveCamera cameraL]</h3>
  30. <p>Left camera. This is added to [page:Layers layer 1] - objects to be rendered
  31. by the left camera must also be added to this layer.</p>
  32. <h3>[property:PerspectiveCamera cameraR]</h3>
  33. <p>Right camera.This is added to [page:Layers layer 2] - objects to be rendered
  34. by the right camera must also be added to this layer.</p>
  35. <h2>Methods</h2>
  36. <h3>[method:null update]( [param:PerspectiveCamera camera] )</h3>
  37. <p>
  38. Update the stereo cameras based on the camera passed in.
  39. </p>
  40. <h2>Source</h2>
  41. <p>
  42. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  43. </p>
  44. </body>
  45. </html>