2
0

StereoCamera.html 1.5 KB

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