提交 6bc223b7 编写于 作者: L Lewy Blue 提交者: Mr.doob

Created docs for StereoCamera (#10045)

上级 a03e57a1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>
<div class="desc">
Dual [page:PerspectiveCamera PerspectiveCamera]s used for effects such as
[link:https://en.wikipedia.org/wiki/Anaglyph_3D 3D Anaglyph] or [link:https://en.wikipedia.org/wiki/parallax_barrier Parallax Barrier].
</div>
<h2>Example</h2>
<div>[example:webgl_effects_anaglyph effects / anaglyph ]</div>
<div>[example:webgl_effects_parallaxbarrier effects / parallaxbarrier ]</div>
<div>[example:webgl_effects_stereo effects / stereo ]</div>
<div>
This class is used internally in the files<br /><br />
[link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/AnaglyphEffect.js examples/js/effects/AnaglyphEffect.js]<br /><br />
[link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/ParallaxBarrierEffect.js examples/js/effects/ParallaxBarrierEffect.js]<br /><br />
[link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/StereoEffect.js examples/js/effects/StereoEffect.js]<br /><br />
used in the above examples.
</div>
<h2>Constructor</h2>
<h3>[name]( )</h3>
<h2>Properties</h2>
<h3>[property:Float aspect]</h3>
<div>Default is *1*.</div>
<h3>[property:Float eyeSep]</h3>
<div>Default is *0.064*.</div>
<h3>[property:PerspectiveCamera cameraL]</h3>
<div>Left camera.</div>
<h3>[property:PerspectiveCamera cameraR]</h3>
<div>Right camera.</div>
<h2>Methods</h2>
<h3>[method:null update]( camera )</h3>
<div>
Update the stereo cameras based on the camera passed in.
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
......@@ -21,7 +21,8 @@ var list = {
[ "Camera", "api/cameras/Camera" ],
[ "CubeCamera", "api/cameras/CubeCamera" ],
[ "OrthographicCamera", "api/cameras/OrthographicCamera" ],
[ "PerspectiveCamera", "api/cameras/PerspectiveCamera" ]
[ "PerspectiveCamera", "api/cameras/PerspectiveCamera" ],
[ "StereoCamera", "api/cameras/StereoCamera" ]
],
"Core": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册