StereoCamera.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="en">
  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. Dual [page:PerspectiveCamera PerspectiveCamera]s used for effects such as
  13. [link:https://en.wikipedia.org/wiki/Anaglyph_3D 3D Anaglyph] or
  14. [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>
  31. Left camera. This is added to [page:Layers layer 1] - objects to be
  32. rendered by the left camera must also be added to this layer.
  33. </p>
  34. <h3>[property:PerspectiveCamera cameraR]</h3>
  35. <p>
  36. Right camera.This is added to [page:Layers layer 2] - objects to be
  37. rendered by the right camera must also be added to this layer.
  38. </p>
  39. <h2>Methods</h2>
  40. <h3>[method:undefined update]( [param:PerspectiveCamera camera] )</h3>
  41. <p>Update the stereo cameras based on the camera passed in.</p>
  42. <h2>Source</h2>
  43. <p>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </p>
  46. </body>
  47. </html>