Mr.doob пре 2 недеља
родитељ
комит
8777a4abde

+ 1 - 0
docs/index.html

@@ -1491,6 +1491,7 @@
 						<li><a href="TSL.html#viewZToLogarithmicDepth">viewZToLogarithmicDepth</a></li>
 						<li><a href="TSL.html#viewZToOrthographicDepth">viewZToOrthographicDepth</a></li>
 						<li><a href="TSL.html#viewZToPerspectiveDepth">viewZToPerspectiveDepth</a></li>
+						<li><a href="TSL.html#viewZToReversedPerspectiveDepth">viewZToReversedPerspectiveDepth</a></li>
 						<li><a href="TSL.html#viewport">viewport</a></li>
 						<li><a href="TSL.html#viewportCoordinate">viewportCoordinate</a></li>
 						<li><a href="TSL.html#viewportDepthTexture">viewportDepthTexture</a></li>

+ 7 - 0
docs/pages/OrbitControls.html

@@ -95,6 +95,13 @@ It can be updated manually at any point to change the center of interest
 for the <code>target</code>.</p>
 					</div>
 				</div>
+				<div class="member">
+					<h3 class="name" id="cursorStyle" translate="no">.<a href="#cursorStyle">cursorStyle</a><span class="type-signature"> : 'auto' | 'grab'</span> </h3>
+					<div class="description">
+						<p>Defines the visual representation of the cursor.</p>
+						<p>Default is <code>'auto'</code>.</p>
+					</div>
+				</div>
 				<div class="member">
 					<h3 class="name" id="dampingFactor" translate="no">.<a href="#dampingFactor">dampingFactor</a><span class="type-signature"> : number</span> </h3>
 					<div class="description">

+ 6 - 0
docs/pages/OrbitControls.html.md

@@ -70,6 +70,12 @@ Default is `2`.
 
 The focus point of the `minTargetRadius` and `maxTargetRadius` limits. It can be updated manually at any point to change the center of interest for the `target`.
 
+### .cursorStyle : 'auto' | 'grab'
+
+Defines the visual representation of the cursor.
+
+Default is `'auto'`.
+
 ### .dampingFactor : number
 
 The damping inertia used if `enableDamping` is set to `true`.

+ 19 - 1
docs/pages/Renderer.html

@@ -227,7 +227,7 @@ further processing.</p>
 					</div>
 				</div>
 				<div class="member">
-					<h3 class="name" id="logarithmicDepthBuffer" translate="no">.<a href="#logarithmicDepthBuffer">logarithmicDepthBuffer</a><span class="type-signature"> : boolean</span> </h3>
+					<h3 class="name" id="logarithmicDepthBuffer" translate="no">.<a href="#logarithmicDepthBuffer">logarithmicDepthBuffer</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
 					<div class="description">
 						<p>Whether logarithmic depth buffer is enabled or not.</p>
 						<p>Default is <code>false</code>.</p>
@@ -260,6 +260,13 @@ If this is the case, the renderer allocates an internal render target for that p
 						<p>Default is <code>SRGBColorSpace</code>.</p>
 					</div>
 				</div>
+				<div class="member">
+					<h3 class="name" id="reversedDepthBuffer" translate="no">.<a href="#reversedDepthBuffer">reversedDepthBuffer</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
+					<div class="description">
+						<p>Whether reversed depth buffer is enabled or not.</p>
+						<p>Default is <code>false</code>.</p>
+					</div>
+				</div>
 				<div class="member">
 					<h3 class="name" id="samples" translate="no">.<a href="#samples">samples</a><span class="type-signature"> : number</span> </h3>
 					<div class="description">
@@ -1881,6 +1888,17 @@ the CPU waits for the GPU to complete its operation (e.g. a compute task).</p>
 						<p>Default is <code>false</code>.</p>
 			</td>
 		</tr>
+		<tr>
+				<td class="name">
+					<strong>reversedDepthBuffer</strong>
+						<br>
+<span class="param-type">boolean</span>
+				</td>
+			<td class="description last">
+				<p>Whether reversed depth buffer is enabled or not.</p>
+						<p>Default is <code>false</code>.</p>
+			</td>
+		</tr>
 		<tr>
 				<td class="name">
 					<strong>alpha</strong>

+ 14 - 1
docs/pages/Renderer.html.md

@@ -133,7 +133,7 @@ The node library defines how certain library objects like materials, lights or t
 
 A map-like data structure for managing lights.
 
-### .logarithmicDepthBuffer : boolean
+### .logarithmicDepthBuffer : boolean (readonly)
 
 Whether logarithmic depth buffer is enabled or not.
 
@@ -159,6 +159,12 @@ Defines the output color space of the renderer.
 
 Default is `SRGBColorSpace`.
 
+### .reversedDepthBuffer : boolean (readonly)
+
+Whether reversed depth buffer is enabled or not.
+
+Default is `false`.
+
 ### .samples : number
 
 The number of samples used for multi-sample anti-aliasing (MSAA).
@@ -1033,6 +1039,13 @@ Whether logarithmic depth buffer is enabled or not.
 
 Default is `false`.
 
+**reversedDepthBuffer**  
+boolean
+
+Whether reversed depth buffer is enabled or not.
+
+Default is `false`.
+
 **alpha**  
 boolean
 

+ 34 - 0
docs/pages/TSL.html

@@ -11732,6 +11732,40 @@ compared to ColorAdjustment#saturation.</p>
 							</tbody>
 						</table>
 					</div>
+					<h3 class="name name-method" id="viewZToReversedPerspectiveDepth" translate="no">.<a href="#viewZToReversedPerspectiveDepth">viewZToReversedPerspectiveDepth</a><span class="signature">( viewZ : <span class="param-type"><a href="Node.html">Node</a>.&lt;float></span>, near : <span class="param-type"><a href="Node.html">Node</a>.&lt;float></span>, far : <span class="param-type"><a href="Node.html">Node</a>.&lt;float></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
+					<div class="method">
+						<div class="description">
+							<p>TSL function for converting a viewZ value to a reversed perspective depth value.</p>
+						</div>
+						<table class="params">
+							<tbody>
+								<tr>
+									<td class="name">
+										<strong translate="no">viewZ</strong>
+									</td>
+									<td class="description last">
+										<p>The viewZ node.</p>
+									</td>
+								</tr>
+								<tr>
+									<td class="name">
+										<strong translate="no">near</strong>
+									</td>
+									<td class="description last">
+										<p>The camera's near value.</p>
+									</td>
+								</tr>
+								<tr>
+									<td class="name">
+										<strong translate="no">far</strong>
+									</td>
+									<td class="description last">
+										<p>The camera's far value.</p>
+									</td>
+								</tr>
+							</tbody>
+						</table>
+					</div>
 					<h3 class="name name-method" id="viewportDepthTexture" translate="no">.<a href="#viewportDepthTexture">viewportDepthTexture</a><span class="signature">( uvNode : <span class="param-type"><a href="Node.html">Node</a></span>, levelNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span><span class="type-signature"> : <a href="ViewportDepthTextureNode.html">ViewportDepthTextureNode</a></span> </h3>
 					<div class="method">
 						<div class="description">

+ 16 - 0
docs/pages/TSL.html.md

@@ -6057,6 +6057,22 @@ The camera's near value.
 
 The camera's far value.
 
+### .viewZToReversedPerspectiveDepth( viewZ : Node.<float>, near : Node.<float>, far : Node.<float> ) : Node.<float>
+
+TSL function for converting a viewZ value to a reversed perspective depth value.
+
+**viewZ**
+
+The viewZ node.
+
+**near**
+
+The camera's near value.
+
+**far**
+
+The camera's far value.
+
 ### .viewportDepthTexture( uvNode : Node, levelNode : Node ) : ViewportDepthTextureNode
 
 TSL function for a viewport depth texture node.

+ 11 - 0
docs/pages/WebGPURenderer.html

@@ -76,6 +76,17 @@ standard node library for type mapping.</p>
 						<p>Default is <code>false</code>.</p>
 			</td>
 		</tr>
+		<tr>
+				<td class="name">
+					<strong>reversedDepthBuffer</strong>
+						<br>
+<span class="param-type">boolean</span>
+				</td>
+			<td class="description last">
+				<p>Whether reversed depth buffer is enabled or not.</p>
+						<p>Default is <code>false</code>.</p>
+			</td>
+		</tr>
 		<tr>
 				<td class="name">
 					<strong>alpha</strong>

+ 7 - 0
docs/pages/WebGPURenderer.html.md

@@ -41,6 +41,13 @@ Whether logarithmic depth buffer is enabled or not.
 
 Default is `false`.
 
+**reversedDepthBuffer**  
+boolean
+
+Whether reversed depth buffer is enabled or not.
+
+Default is `false`.
+
 **alpha**  
 boolean
 

+ 12 - 0
docs/search.json

@@ -11256,6 +11256,10 @@
 			"title": "Renderer#renderObject",
 			"kind": "function"
 		},
+		{
+			"title": "Renderer#reversedDepthBuffer",
+			"kind": "member"
+		},
 		{
 			"title": "Renderer#samples",
 			"kind": "member"
@@ -19642,6 +19646,10 @@
 			"title": "OrbitControls#cursor",
 			"kind": "member"
 		},
+		{
+			"title": "OrbitControls#cursorStyle",
+			"kind": "member"
+		},
 		{
 			"title": "OrbitControls#dampingFactor",
 			"kind": "member"
@@ -27746,6 +27754,10 @@
 			"title": "viewZToPerspectiveDepth",
 			"kind": "function"
 		},
+		{
+			"title": "viewZToReversedPerspectiveDepth",
+			"kind": "function"
+		},
 		{
 			"title": "viewport",
 			"kind": "member"

粤ICP备19079148号