Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glTF KHR_lights update #13340

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions docs/api/core/Projector.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<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">Projects points between spaces.</div>


<h2>Constructor</h2>

<h3>[name]()</h3>
<div>
todo
</div>

<h2>Properties</h2>

<h2>Methods</h2>

<h3>.projectVector( [page:Vector3 vector], [page:Camera camera] ) [page:Vector3]</h3>
<div>
[page:Vector3 vector] — vector to project.<br />
[page:Camera camera] — camera to use in the projection.<br />
</div>
<div>
Projects a vector with the camera. Caution, this method changes 'vector'.
</div>

<h3>.unprojectVector( [page:Vector3 vector], [page:Camera camera] ) [page:Vector3]</h3>
<div>
[page:Vector3 vector] — vector to unproject.<br />
[page:Camera camera] — camera to use in the projection.<br />
</div>
<div>
Unprojects a vector with the camera. Caution, this method changes 'vector'.
</div>

<h3>.pickingRay( [page:Vector3 vector], [page:Camera camera] ) [page:Raycaster]</h3>
<div>
Translates a 2D point from NDC (<em>Normalized Device Coordinates</em>) to a [page:Raycaster] that can be used for picking. NDC range from [-1..1] in x (left to right) and [1.0 .. -1.0] in y (top to bottom).
</div>

<h3>.projectScene( [page:Scene scene], [page:Camera camera], [page:Boolean sort] ) [page:Object]</h3>
<div>
[page:Scene scene] — scene to project.<br />
[page:Camera camera] — camera to use in the projection.<br />
[page:Boolean sort] — select whether to sort elements using the <a href="http://en.wikipedia.org/wiki/Painter%27s_algorithm">Painter's algorithm</a>.
</div>

<div>
Transforms a 3D [page:Scene scene] object into 2D render data that can be rendered in a screen with your renderer of choice, projecting and clipping things out according to the used camera.
</div>
<div>
If the <em>scene</em> were a real scene, this method would be the equivalent of taking a picture with the <em>camera</em> (and developing the film would be the next step, using a Renderer).
</div>


<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
263 changes: 263 additions & 0 deletions docs/api/extras/cameras/CombinedCamera.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,263 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<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">todo</div>


<h2>Constructor</h2>


<h3>[name]([page:todo width], [page:todo height], [page:todo fov], [page:todo near], [page:todo far], [page:todo orthoNear], [page:todo orthoFar])</h3>
<div>
width -- todo <br />
height -- todo <br />
fov -- todo <br />
near -- todo <br />
far -- todo <br />
orthoNear -- todo <br />
orthoFar -- todo
</div>
<div>
todo
</div>


<h2>Properties</h2>



<h3>.[page:todo fov]</h3>
<div>
todo
</div>

<h3>.[page:number right]</h3>
<div>
todo
</div>

<h3>.[page:number bottom]</h3>
<div>
todo
</div>

<h3>.[page:PerspectiveCamera cameraP]</h3>
<div>
todo
</div>

<h3>.[page:number top]</h3>
<div>
todo
</div>

<h3>.[page:number zoom]</h3>
<div>
todo
</div>

<h3>.[page:number far]</h3>
<div>
todo
</div>

<h3>.[page:number near]</h3>
<div>
todo
</div>

<h3>.[page:boolean inPerspectiveMode]</h3>
<div>
todo
</div>

<h3>.[page:OrthographicCamera cameraO]</h3>
<div>
todo
</div>

<h3>.[page:boolean inOrthographicMode]</h3>
<div>
todo
</div>

<h3>.[page:number left]</h3>
<div>
todo
</div>

<h2>Methods</h2>



<h3>.toBottomView() [page:todo]</h3>
<div>
todo
</div>

<h3>.setFov([page:todo fov]) [page:todo]</h3>
<div>
fov -- todo
</div>
<div>
todo
</div>

<h3>.toBackView() [page:todo]</h3>
<div>
todo
</div>

<h3>.setZoom([page:todo zoom]) [page:todo]</h3>
<div>
zoom -- todo
</div>
<div>
todo
</div>

<h3>.setLens([page:todo focalLength], [page:todo frameHeight]) [page:todo]</h3>
<div>
focalLength -- todo <br />
frameHeight -- todo
</div>
<div>
todo
</div>

<h3>.toFrontView() [page:todo]</h3>
<div>
todo
</div>

<h3>.toLeftView() [page:todo]</h3>
<div>
todo
</div>

<h3>.updateProjectionMatrix() [page:todo]</h3>
<div>
todo
</div>

<h3>.toTopView() [page:todo]</h3>
<div>
todo
</div>

<h3>.toOrthographic() [page:todo]</h3>
<div>
todo
</div>

<h3>.setSize([page:todo width], [page:todo height]) [page:todo]</h3>
<div>
width -- todo <br />
height -- todo
</div>
<div>
todo
</div>

<h3>.toPerspective() [page:todo]</h3>
<div>
todo
</div>

<h3>.toRightView() [page:todo]</h3>
<div>
todo
</div>

<h3>.toBottomView() [page:todo]</h3>
<div>
todo
</div>

<h3>.setFov([page:todo fov]) [page:todo]</h3>
<div>
fov -- todo
</div>
<div>
todo
</div>

<h3>.toBackView() [page:todo]</h3>
<div>
todo
</div>

<h3>.setZoom([page:todo zoom]) [page:todo]</h3>
<div>
zoom -- todo
</div>
<div>
todo
</div>

<h3>.setLens([page:todo focalLength], [page:todo frameHeight]) [page:todo]</h3>
<div>
focalLength -- todo <br />
frameHeight -- todo
</div>
<div>
todo
</div>

<h3>.toFrontView() [page:todo]</h3>
<div>
todo
</div>

<h3>.toLeftView() [page:todo]</h3>
<div>
todo
</div>

<h3>.updateProjectionMatrix() [page:todo]</h3>
<div>
todo
</div>

<h3>.toTopView() [page:todo]</h3>
<div>
todo
</div>

<h3>.toOrthographic() [page:todo]</h3>
<div>
todo
</div>

<h3>.setSize([page:todo width], [page:todo height]) [page:todo]</h3>
<div>
width -- todo <br />
height -- todo
</div>
<div>
todo
</div>

<h3>.toPerspective() [page:todo]</h3>
<div>
todo
</div>

<h3>.toRightView() [page:todo]</h3>
<div>
todo
</div>

<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
64 changes: 64 additions & 0 deletions docs/api/extras/cameras/CubeCamera.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<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">todo</div>


<h2>Constructor</h2>


<h3>[name]([page:todo near], [page:todo far], [page:todo cubeResolution])</h3>
<div>
near -- todo <br />
far -- todo <br />
cubeResolution -- todo
</div>
<div>
todo
</div>


<h2>Properties</h2>



<h3>.[page:WebGLRenderTargetCube renderTarget]</h3>
<div>
todo
</div>

<h2>Methods</h2>



<h3>.updateCubeMap([page:todo renderer], [page:todo scene]) [page:todo]</h3>
<div>
renderer -- todo <br />
scene -- todo
</div>
<div>
todo
</div>

<h3>.updateCubeMap([page:todo renderer], [page:todo scene]) [page:todo]</h3>
<div>
renderer -- todo <br />
scene -- todo
</div>
<div>
todo
</div>

<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
Loading