Bladeren bron

Updated docs.

Mr.doob 3 maanden geleden
bovenliggende
commit
cd704f2298

+ 5 - 0
docs/index.html

@@ -1313,6 +1313,7 @@
 						<li><a href="TSL.html#quadSwapDiagonal">quadSwapDiagonal</a></li>
 						<li><a href="TSL.html#quadSwapDiagonal">quadSwapDiagonal</a></li>
 						<li><a href="TSL.html#quadSwapX">quadSwapX</a></li>
 						<li><a href="TSL.html#quadSwapX">quadSwapX</a></li>
 						<li><a href="TSL.html#quadSwapY">quadSwapY</a></li>
 						<li><a href="TSL.html#quadSwapY">quadSwapY</a></li>
+						<li><a href="TSL.html#radialBlur">radialBlur</a></li>
 						<li><a href="TSL.html#radians">radians</a></li>
 						<li><a href="TSL.html#radians">radians</a></li>
 						<li><a href="TSL.html#rand">rand</a></li>
 						<li><a href="TSL.html#rand">rand</a></li>
 						<li><a href="TSL.html#range">range</a></li>
 						<li><a href="TSL.html#range">range</a></li>
@@ -1462,6 +1463,7 @@
 						<li><a href="TSL.html#uniformFlow">uniformFlow</a></li>
 						<li><a href="TSL.html#uniformFlow">uniformFlow</a></li>
 						<li><a href="TSL.html#uniformGroup">uniformGroup</a></li>
 						<li><a href="TSL.html#uniformGroup">uniformGroup</a></li>
 						<li><a href="TSL.html#uniformTexture">uniformTexture</a></li>
 						<li><a href="TSL.html#uniformTexture">uniformTexture</a></li>
+						<li><a href="TSL.html#unpackNormal">unpackNormal</a></li>
 						<li><a href="TSL.html#unpremultiplyAlpha">unpremultiplyAlpha</a></li>
 						<li><a href="TSL.html#unpremultiplyAlpha">unpremultiplyAlpha</a></li>
 						<li><a href="TSL.html#userData">userData</a></li>
 						<li><a href="TSL.html#userData">userData</a></li>
 						<li><a href="TSL.html#uv">uv</a></li>
 						<li><a href="TSL.html#uv">uv</a></li>
@@ -1594,6 +1596,7 @@
 						<li><a href="global.html#NeverStencilFunc">NeverStencilFunc</a></li>
 						<li><a href="global.html#NeverStencilFunc">NeverStencilFunc</a></li>
 						<li><a href="global.html#NoBlending">NoBlending</a></li>
 						<li><a href="global.html#NoBlending">NoBlending</a></li>
 						<li><a href="global.html#NoColorSpace">NoColorSpace</a></li>
 						<li><a href="global.html#NoColorSpace">NoColorSpace</a></li>
+						<li><a href="global.html#NoNormalPacking">NoNormalPacking</a></li>
 						<li><a href="global.html#NoToneMapping">NoToneMapping</a></li>
 						<li><a href="global.html#NoToneMapping">NoToneMapping</a></li>
 						<li><a href="global.html#NodeAccess">NodeAccess</a></li>
 						<li><a href="global.html#NodeAccess">NodeAccess</a></li>
 						<li><a href="global.html#NodeShaderStage">NodeShaderStage</a></li>
 						<li><a href="global.html#NodeShaderStage">NodeShaderStage</a></li>
@@ -1601,6 +1604,8 @@
 						<li><a href="global.html#NodeUpdateType">NodeUpdateType</a></li>
 						<li><a href="global.html#NodeUpdateType">NodeUpdateType</a></li>
 						<li><a href="global.html#NormalAnimationBlendMode">NormalAnimationBlendMode</a></li>
 						<li><a href="global.html#NormalAnimationBlendMode">NormalAnimationBlendMode</a></li>
 						<li><a href="global.html#NormalBlending">NormalBlending</a></li>
 						<li><a href="global.html#NormalBlending">NormalBlending</a></li>
+						<li><a href="global.html#NormalGAPacking">NormalGAPacking</a></li>
+						<li><a href="global.html#NormalRGPacking">NormalRGPacking</a></li>
 						<li><a href="global.html#NotEqualCompare">NotEqualCompare</a></li>
 						<li><a href="global.html#NotEqualCompare">NotEqualCompare</a></li>
 						<li><a href="global.html#NotEqualDepth">NotEqualDepth</a></li>
 						<li><a href="global.html#NotEqualDepth">NotEqualDepth</a></li>
 						<li><a href="global.html#NotEqualStencilFunc">NotEqualStencilFunc</a></li>
 						<li><a href="global.html#NotEqualStencilFunc">NotEqualStencilFunc</a></li>

+ 1 - 1
docs/pages/MaterialLoader.html

@@ -13,7 +13,7 @@
 	<h1 translate="no">MaterialLoader</h1>
 	<h1 translate="no">MaterialLoader</h1>
 		<section>
 		<section>
 			<header>
 			<header>
-				<div class="class-description"><p>Class for loading geometries. The files are internally
+				<div class="class-description"><p>Class for loading materials. The files are internally
 loaded via <a href="FileLoader.html">FileLoader</a>.</p>
 loaded via <a href="FileLoader.html">FileLoader</a>.</p>
 <p>This loader does not support node materials. Use <a href="NodeMaterialLoader.html">NodeMaterialLoader</a> instead.</p></div>
 <p>This loader does not support node materials. Use <a href="NodeMaterialLoader.html">NodeMaterialLoader</a> instead.</p></div>
 				<h2>Code Example</h2>
 				<h2>Code Example</h2>

+ 7 - 0
docs/pages/NormalMapNode.html

@@ -70,6 +70,13 @@
 						<p>Default is <code>null</code>.</p>
 						<p>Default is <code>null</code>.</p>
 					</div>
 					</div>
 				</div>
 				</div>
+				<div class="member">
+					<h3 class="name" id="unpackNormalMode" translate="no">.<a href="#unpackNormalMode">unpackNormalMode</a><span class="type-signature"> : string</span> </h3>
+					<div class="description">
+						<p>Controls how to unpack the sampled normal map values.</p>
+						<p>Default is <code>NoNormalPacking</code>.</p>
+					</div>
+				</div>
 				<h2 class="subsection-title">Source</h2>
 				<h2 class="subsection-title">Source</h2>
 				<p>
 				<p>
 					<a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/NormalMapNode.js" translate="no" target="_blank" rel="noopener">src/nodes/display/NormalMapNode.js</a>
 					<a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/NormalMapNode.js" translate="no" target="_blank" rel="noopener">src/nodes/display/NormalMapNode.js</a>

+ 14 - 0
docs/pages/PhysicalLightingModel.html

@@ -140,6 +140,20 @@
 						<p>Default is <code>null</code>.</p>
 						<p>Default is <code>null</code>.</p>
 					</div>
 					</div>
 				</div>
 				</div>
+				<div class="member">
+					<h3 class="name" id="iridescenceF0Dielectric" translate="no">.<a href="#iridescenceF0Dielectric">iridescenceF0Dielectric</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
+					<div class="description">
+						<p>The iridescence F0 dielectric.</p>
+						<p>Default is <code>null</code>.</p>
+					</div>
+				</div>
+				<div class="member">
+					<h3 class="name" id="iridescenceF0Metallic" translate="no">.<a href="#iridescenceF0Metallic">iridescenceF0Metallic</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
+					<div class="description">
+						<p>The iridescence F0 metallic.</p>
+						<p>Default is <code>null</code>.</p>
+					</div>
+				</div>
 				<div class="member">
 				<div class="member">
 					<h3 class="name" id="iridescenceFresnel" translate="no">.<a href="#iridescenceFresnel">iridescenceFresnel</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
 					<h3 class="name" id="iridescenceFresnel" translate="no">.<a href="#iridescenceFresnel">iridescenceFresnel</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
 					<div class="description">
 					<div class="description">

+ 105 - 0
docs/pages/TSL.html

@@ -7513,6 +7513,89 @@ rendering for certain operations, such as compositing and image processing.</p>
 							<dt class="tag-returns"><strong>Returns:</strong> The value received from the swap operation.</dt>
 							<dt class="tag-returns"><strong>Returns:</strong> The value received from the swap operation.</dt>
 						</dl>
 						</dl>
 					</div>
 					</div>
+					<h3 class="name name-method" id="radialBlur" translate="no">.<a href="#radialBlur">radialBlur</a><span class="signature">( textureNode : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec4></span>, options : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec4></span> </h3>
+					<div class="method">
+						<div class="description">
+							<p>This TSL function blurs an image in a circular pattern, radiating from a configurable center point in screen space.</p>
+<p>Radial blurs can be used for different kind of effects like producing simple faked lighting effects also known as
+&quot;light shafts&quot;. The major limitation of this specific usage is the center point can only be defined in 2D so the
+effect does not honor the depth of 3D objects. Consequently, it is not intended for physically correct lit scenes.</p>
+						</div>
+						<table class="params">
+							<tbody>
+								<tr>
+									<td class="name">
+										<strong>textureNode</strong>
+									</td>
+									<td class="description last">
+										<p>The texture node that should be blurred.</p>
+									</td>
+								</tr>
+								<tr>
+									<td class="name">
+										<strong>options</strong>
+									</td>
+									<td class="description last">
+										<p>Additional options for the radial blur effect.</p>
+										<p>Default is <code>{}</code>.</p>
+						<table class="params">
+							<tbody>
+								<tr>
+									<td class="name">
+										<strong>center</strong>
+									</td>
+									<td class="description last">
+										<p>The center of the light in screen uvs.</p>
+										<p>Default is <code>vec2(0.5, 0.5)</code>.</p>
+									</td>
+								</tr>
+								<tr>
+									<td class="name">
+										<strong>weight</strong>
+									</td>
+									<td class="description last">
+										<p>Base weight factor for each sample in the range <code>[0,1]</code>.</p>
+										<p>Default is <code>float(0.9)</code>.</p>
+									</td>
+								</tr>
+								<tr>
+									<td class="name">
+										<strong>decay</strong>
+									</td>
+									<td class="description last">
+										<p>Decreases the weight factor so each iteration adds less to the sum. Must be in the range <code>[0,1]</code>.
+If you increase the sample count, you have to increase this option as well to avoid a darking effect.</p>
+										<p>Default is <code>float(0.95)</code>.</p>
+									</td>
+								</tr>
+								<tr>
+									<td class="name">
+										<strong>count</strong>
+									</td>
+									<td class="description last">
+										<p>The number if iterations. Should be in the range <code>[16,64]</code>.</p>
+										<p>Default is <code>int(32)</code>.</p>
+									</td>
+								</tr>
+								<tr>
+									<td class="name">
+										<strong>exposure</strong>
+									</td>
+									<td class="description last">
+										<p>Exposure control of the blur.</p>
+										<p>Default is <code>float(5)</code>.</p>
+									</td>
+								</tr>
+							</tbody>
+						</table>
+									</td>
+								</tr>
+							</tbody>
+						</table>
+						<dl class="details">
+							<dt class="tag-returns"><strong>Returns:</strong> The blurred texture node.</dt>
+						</dl>
+					</div>
 					<h3 class="name name-method" id="radians" translate="no">.<a href="#radians">radians</a><span class="signature">( x : <span class="param-type"><a href="Node.html">Node</a> | number</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
 					<h3 class="name name-method" id="radians" translate="no">.<a href="#radians">radians</a><span class="signature">( x : <span class="param-type"><a href="Node.html">Node</a> | number</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
 					<div class="method">
 					<div class="method">
 						<div class="description">
 						<div class="description">
@@ -11011,6 +11094,28 @@ to complete before the barrier can be passed.</p>
 							</tbody>
 							</tbody>
 						</table>
 						</table>
 					</div>
 					</div>
+					<h3 class="name name-method" id="unpackNormal" translate="no">.<a href="#unpackNormal">unpackNormal</a><span class="signature">( xy : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec2></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
+					<div class="method">
+						<div class="description">
+							<p>Unpacks a tangent space normal, reconstructing the Z component by projecting the X,Y coordinates onto the hemisphere.
+The X,Y coordinates are expected to be in the [-1, 1] range.</p>
+						</div>
+						<table class="params">
+							<tbody>
+								<tr>
+									<td class="name">
+										<strong>xy</strong>
+									</td>
+									<td class="description last">
+										<p>The X,Y coordinates of the normal.</p>
+									</td>
+								</tr>
+							</tbody>
+						</table>
+						<dl class="details">
+							<dt class="tag-returns"><strong>Returns:</strong> The resulting normal.</dt>
+						</dl>
+					</div>
 					<h3 class="name name-method" id="unpremultiplyAlpha" translate="no">.<a href="#unpremultiplyAlpha">unpremultiplyAlpha</a><span class="signature">( color : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec4></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec4></span> </h3>
 					<h3 class="name name-method" id="unpremultiplyAlpha" translate="no">.<a href="#unpremultiplyAlpha">unpremultiplyAlpha</a><span class="signature">( color : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec4></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec4></span> </h3>
 					<div class="method">
 					<div class="method">
 						<div class="description">
 						<div class="description">

+ 18 - 0
docs/pages/global.html

@@ -646,6 +646,12 @@ alpha transparency.</p>
 						<p>No color space.</p>
 						<p>No color space.</p>
 					</div>
 					</div>
 				</div>
 				</div>
+				<div class="member">
+					<h3 class="name" id="NoNormalPacking" translate="no">.<a href="#NoNormalPacking">NoNormalPacking</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
+					<div class="description">
+						<p>No normal map packing.</p>
+					</div>
+				</div>
 				<div class="member">
 				<div class="member">
 					<h3 class="name" id="NoToneMapping" translate="no">.<a href="#NoToneMapping">NoToneMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
 					<h3 class="name" id="NoToneMapping" translate="no">.<a href="#NoToneMapping">NoToneMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
 					<div class="description">
 					<div class="description">
@@ -884,6 +890,18 @@ alpha transparency.</p>
 						<p>The default blending.</p>
 						<p>The default blending.</p>
 					</div>
 					</div>
 				</div>
 				</div>
+				<div class="member">
+					<h3 class="name" id="NormalGAPacking" translate="no">.<a href="#NormalGAPacking">NormalGAPacking</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
+					<div class="description">
+						<p>Normal GA packing.</p>
+					</div>
+				</div>
+				<div class="member">
+					<h3 class="name" id="NormalRGPacking" translate="no">.<a href="#NormalRGPacking">NormalRGPacking</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
+					<div class="description">
+						<p>Normal RG packing.</p>
+					</div>
+				</div>
 				<div class="member">
 				<div class="member">
 					<h3 class="name" id="NotEqualCompare" translate="no">.<a href="#NotEqualCompare">NotEqualCompare</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
 					<h3 class="name" id="NotEqualCompare" translate="no">.<a href="#NotEqualCompare">NotEqualCompare</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
 					<div class="description">
 					<div class="description">

+ 32 - 0
docs/search.json

@@ -9028,6 +9028,10 @@
 			"title": "NormalMapNode#scaleNode",
 			"title": "NormalMapNode#scaleNode",
 			"kind": "member"
 			"kind": "member"
 		},
 		},
+		{
+			"title": "NormalMapNode#unpackNormalMode",
+			"kind": "member"
+		},
 		{
 		{
 			"title": "NumberKeyframeTrack",
 			"title": "NumberKeyframeTrack",
 			"kind": "class"
 			"kind": "class"
@@ -9924,6 +9928,14 @@
 			"title": "PhysicalLightingModel#iridescenceF0",
 			"title": "PhysicalLightingModel#iridescenceF0",
 			"kind": "member"
 			"kind": "member"
 		},
 		},
+		{
+			"title": "PhysicalLightingModel#iridescenceF0Dielectric",
+			"kind": "member"
+		},
+		{
+			"title": "PhysicalLightingModel#iridescenceF0Metallic",
+			"kind": "member"
+		},
 		{
 		{
 			"title": "PhysicalLightingModel#iridescenceFresnel",
 			"title": "PhysicalLightingModel#iridescenceFresnel",
 			"kind": "member"
 			"kind": "member"
@@ -25024,6 +25036,10 @@
 			"title": "NoColorSpace",
 			"title": "NoColorSpace",
 			"kind": "member"
 			"kind": "member"
 		},
 		},
+		{
+			"title": "NoNormalPacking",
+			"kind": "member"
+		},
 		{
 		{
 			"title": "NoToneMapping",
 			"title": "NoToneMapping",
 			"kind": "member"
 			"kind": "member"
@@ -25052,6 +25068,14 @@
 			"title": "NormalBlending",
 			"title": "NormalBlending",
 			"kind": "member"
 			"kind": "member"
 		},
 		},
+		{
+			"title": "NormalGAPacking",
+			"kind": "member"
+		},
+		{
+			"title": "NormalRGPacking",
+			"kind": "member"
+		},
 		{
 		{
 			"title": "NotEqualCompare",
 			"title": "NotEqualCompare",
 			"kind": "member"
 			"kind": "member"
@@ -27486,6 +27510,10 @@
 			"title": "quadSwapY",
 			"title": "quadSwapY",
 			"kind": "function"
 			"kind": "function"
 		},
 		},
+		{
+			"title": "radialBlur",
+			"kind": "function"
+		},
 		{
 		{
 			"title": "radians",
 			"title": "radians",
 			"kind": "function"
 			"kind": "function"
@@ -28090,6 +28118,10 @@
 			"title": "uniformTexture",
 			"title": "uniformTexture",
 			"kind": "function"
 			"kind": "function"
 		},
 		},
+		{
+			"title": "unpackNormal",
+			"kind": "function"
+		},
 		{
 		{
 			"title": "unpremultiplyAlpha",
 			"title": "unpremultiplyAlpha",
 			"kind": "function"
 			"kind": "function"

粤ICP备19079148号