|
@@ -13,8 +13,8 @@
|
|
<h1>[name]</h1>
|
|
<h1>[name]</h1>
|
|
|
|
|
|
<p class="desc">
|
|
<p class="desc">
|
|
- Creates a texture for use as a Depth Texture. Require support for the
|
|
|
|
- [link:https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ WEBGL_depth_texture] extension.
|
|
|
|
|
|
+ This class can be used to automatically save the depth information of a rendering into a texture.
|
|
|
|
+ When using a WebGL 1 rendering context, [name] requires support for the [link:https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ WEBGL_depth_texture] extension.
|
|
</p>
|
|
</p>
|
|
|
|
|
|
<h2>Examples</h2>
|
|
<h2>Examples</h2>
|
|
@@ -31,11 +31,11 @@
|
|
|
|
|
|
[page:Number height] -- height of the texture.<br />
|
|
[page:Number height] -- height of the texture.<br />
|
|
|
|
|
|
- [page:Constant type] -- Default is [page:Textures THREE.UnsignedShortType].
|
|
|
|
|
|
+ [page:Constant type] -- Default is [page:Textures THREE.UnsignedShortType] when unsing [page:Textures DepthFormat] and [page:Textures THREE.UnsignedInt248Type] when using [page:Textures DepthStencilFormat].
|
|
See [page:Textures type constants] for other choices.<br />
|
|
See [page:Textures type constants] for other choices.<br />
|
|
|
|
|
|
[page:Constant mapping] --
|
|
[page:Constant mapping] --
|
|
- See [page:Textures type constants] for details.<br />
|
|
|
|
|
|
+ See [page:Textures mapping mode constants] for details.<br />
|
|
|
|
|
|
[page:Constant wrapS] -- The default is [page:Textures THREE.ClampToEdgeWrapping].
|
|
[page:Constant wrapS] -- The default is [page:Textures THREE.ClampToEdgeWrapping].
|
|
See [page:Textures wrap mode constants] for other choices.<br />
|
|
See [page:Textures wrap mode constants] for other choices.<br />
|
|
@@ -73,7 +73,7 @@
|
|
|
|
|
|
<h3>[page:Texture.type .type]</h3>
|
|
<h3>[page:Texture.type .type]</h3>
|
|
<p>
|
|
<p>
|
|
- Default is [page:Textures THREE.UnsignedShortType].
|
|
|
|
|
|
+ Default is [page:Textures THREE.UnsignedShortType] when unsing [page:Textures DepthFormat] and [page:Textures THREE.UnsignedInt248Type] when using [page:Textures DepthStencilFormat].
|
|
See [page:Textures format constants] for details.<br />
|
|
See [page:Textures format constants] for details.<br />
|
|
</p>
|
|
</p>
|
|
|
|
|