1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
<!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>
[page:WebGLRenderTarget] →
<h1>[name]</h1>
<p class="desc">
Used by the [page:CubeCamera] as its [page:WebGLRenderTarget].
</p>
<h2>Examples</h2>
<p>See [page:CubeCamera] for examples.</p>
<h2>Constructor</h2>
<h3>[name]([param:Number width], [param:Number height], [param:Object options])</h3>
<p>
[page:Float width] - The width of the renderTarget. <br />
[page:Float height] - The height of the renderTarget. <br />
options - (optional) object that holds texture parameters for an auto-generated target
texture and depthBuffer/stencilBuffer booleans.
For an explanation of the texture parameters see [page:Texture Texture]. The following are
valid options:<br /><br />
[page:Constant wrapS] - default is [page:Textures ClampToEdgeWrapping]. <br />
[page:Constant wrapT] - default is [page:Textures ClampToEdgeWrapping]. <br />
[page:Constant magFilter] - default is [page:Textures .LinearFilter]. <br />
[page:Constant minFilter] - default is [page:Textures LinearFilter]. <br />
[page:Constant format] - default is [page:Textures RGBAFormat]. <br />
[page:Constant type] - default is [page:Textures UnsignedByteType]. <br />
[page:Number anisotropy] - default is *1*. See [page:Texture.anistropy]<br />
[page:Constant encoding] - default is [page:Textures LinearEncoding]. <br />
[page:Boolean depthBuffer] - default is *true*. Set this to false if you don't need it. <br />
[page:Boolean stencilBuffer] - default is *true*. Set this to false if you don't need it.<br /><br />
Creates a new [name]
</p>
<h2>Properties</h2>
<h3>See [page:WebGLRenderTarget] for inherited properties</h3>
<h2>Methods</h2>
<h3>See [page:WebGLRenderTarget] for inherited methods</h3>
<h3>[method:WebGLRenderTargetCube fromEquirectangularTexture]( [param:WebGLRenderer renderer], [param:Texture texture] )</h3>
<p>
[page:WebGLRenderer renderer] — the renderer.<br/>
[page:Texture texture] — the equirectangular texture.
</p>
<p>
Use this method if you want to convert an equirectangular panorama to the cubemap format.
</p>
<h2>Source</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</p>
</body>
</html>
|