Skip to content

Commit 8607598

Browse files
committed
Updated builds.
1 parent 6a84a80 commit 8607598

File tree

13 files changed

+1125
-14
lines changed

13 files changed

+1125
-14
lines changed

build/three.tsl.js

Lines changed: 4 additions & 1 deletion
Large diffs are not rendered by default.

build/three.tsl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.webgpu.js

Lines changed: 433 additions & 2 deletions
Large diffs are not rendered by default.

build/three.webgpu.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.webgpu.nodes.js

Lines changed: 433 additions & 2 deletions
Large diffs are not rendered by default.

build/three.webgpu.nodes.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ <h3>Nodes</h3>
293293
<li><a href="BasicLightingModel.html">BasicLightingModel</a></li>
294294
<li><a href="BatchNode.html">BatchNode</a></li>
295295
<li><a href="BitcastNode.html">BitcastNode</a></li>
296+
<li><a href="BitcountNode.html">BitcountNode</a></li>
296297
<li><a href="BufferAttributeNode.html">BufferAttributeNode</a></li>
297298
<li><a href="BufferNode.html">BufferNode</a></li>
298299
<li><a href="BuiltinNode.html">BuiltinNode</a></li>
@@ -609,6 +610,10 @@ <h3>Helpers</h3>
609610
<li><a href="VertexTangentsHelper.html">VertexTangentsHelper</a></li>
610611
<li><a href="ViewHelper.html">ViewHelper</a></li>
611612
</ul>
613+
<h3>Inspector</h3>
614+
<ul>
615+
<li><a href="Tab.html">Tab</a></li>
616+
</ul>
612617
<h3>Interactive</h3>
613618
<ul>
614619
<li><a href="HTMLMesh.html">HTMLMesh</a></li>
@@ -1057,6 +1062,9 @@ <h2>TSL</h2>
10571062
<li><a href="TSL.html#convertColorSpace">convertColorSpace</a></li>
10581063
<li><a href="TSL.html#convertToTexture">convertToTexture</a></li>
10591064
<li><a href="TSL.html#cos">cos</a></li>
1065+
<li><a href="TSL.html#countLeadingZeros">countLeadingZeros</a></li>
1066+
<li><a href="TSL.html#countOneBits">countOneBits</a></li>
1067+
<li><a href="TSL.html#countTrailingZeros">countTrailingZeros</a></li>
10601068
<li><a href="TSL.html#createVar">createVar</a></li>
10611069
<li><a href="TSL.html#cross">cross</a></li>
10621070
<li><a href="TSL.html#cubeMapNode">cubeMapNode</a></li>
@@ -1079,6 +1087,7 @@ <h2>TSL</h2>
10791087
<li><a href="TSL.html#determinant">determinant</a></li>
10801088
<li><a href="TSL.html#difference">difference</a></li>
10811089
<li><a href="TSL.html#diffuseColor">diffuseColor</a></li>
1090+
<li><a href="TSL.html#diffuseContribution">diffuseContribution</a></li>
10821091
<li><a href="TSL.html#directionToColor">directionToColor</a></li>
10831092
<li><a href="TSL.html#directionToFaceDirection">directionToFaceDirection</a></li>
10841093
<li><a href="TSL.html#dispersion">dispersion</a></li>
@@ -1365,6 +1374,7 @@ <h2>TSL</h2>
13651374
<li><a href="TSL.html#smoothstepElement">smoothstepElement</a></li>
13661375
<li><a href="TSL.html#sobel">sobel</a></li>
13671376
<li><a href="TSL.html#specularColor">specularColor</a></li>
1377+
<li><a href="TSL.html#specularColorBlended">specularColorBlended</a></li>
13681378
<li><a href="TSL.html#specularF90">specularF90</a></li>
13691379
<li><a href="TSL.html#spherizeUV">spherizeUV</a></li>
13701380
<li><a href="TSL.html#spritesheetUV">spritesheetUV</a></li>

docs/pages/BitcountNode.html

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>BitcountNode - Three.js Docs</title>
6+
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
7+
<script src="../scripts/highlight.min.js"></script>
8+
<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
9+
<link type="text/css" rel="stylesheet" href="../styles/page.css">
10+
</head>
11+
<body>
12+
<p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a><a href="Node.html">Node</a><a href="TempNode.html">TempNode</a><a href="MathNode.html">MathNode</a></p>
13+
<h1 translate="no">BitcountNode</h1>
14+
<section>
15+
<header>
16+
<div class="class-description"><p>This node represents an operation that counts the bits of a piece of shader data.</p></div>
17+
</header>
18+
<article>
19+
<div class="container-overview">
20+
<h2>Constructor</h2>
21+
<h3 class="name name-method" id="BitcountNode" translate="no">new <a href="#BitcountNode">BitcountNode</a><span class="signature">( method : <span class="param-type">'countTrailingZeros' | 'countLeadingZeros' | 'countOneBits'</span>, aNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
22+
<div class="method">
23+
<div class="description">
24+
<p>Constructs a new math node.</p>
25+
</div>
26+
<table class="params">
27+
<tbody>
28+
<tr>
29+
<td class="name">
30+
<strong>method</strong>
31+
</td>
32+
<td class="description last">
33+
<p>The method name.</p>
34+
</td>
35+
</tr>
36+
<tr>
37+
<td class="name">
38+
<strong>aNode</strong>
39+
</td>
40+
<td class="description last">
41+
<p>The first input.</p>
42+
</td>
43+
</tr>
44+
</tbody>
45+
</table>
46+
</div>
47+
</div>
48+
<h2 class="subsection-title">Properties</h2>
49+
<div class="member">
50+
<h3 class="name" id="isBitcountNode" translate="no">.<a href="#isBitcountNode">isBitcountNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
51+
<div class="description">
52+
<p>This flag can be used for type testing.</p>
53+
<p>Default is <code>true</code>.</p>
54+
</div>
55+
</div>
56+
<h2 class="subsection-title">Source</h2>
57+
<p>
58+
<a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/math/BitcountNode.js" translate="no" target="_blank" rel="noopener">src/nodes/math/BitcountNode.js</a>
59+
</p>
60+
</article>
61+
</section>
62+
<script src="../scripts/linenumber.js"></script>
63+
<script src="../scripts/page.js"></script>
64+
</body>
65+
</html>

docs/pages/Renderer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ <h3 class="name name-method" id="compile" translate="no">.<a href="#compile">com
500500
<dt class="tag-returns"><strong>Returns:</strong> A Promise that resolves when the compile has been finished.</dt>
501501
</dl>
502502
</div>
503-
<h3 class="name name-method" id="compileAsync" translate="no">.<a href="#compileAsync">compileAsync</a><span class="signature">( scene : <span class="param-type"><a href="Object3D.html">Object3D</a></span>, camera : <span class="param-type"><a href="Camera.html">Camera</a></span>, targetScene : <span class="param-type"><a href="Scene.html">Scene</a></span> )</span><span class="type-signature"> : Promise.&lt;(Array|undefined)></span> <span class="type-signature">(async) </span></h3>
503+
<h3 class="name name-method" id="compileAsync" translate="no">.<a href="#compileAsync">compileAsync</a><span class="signature">( scene : <span class="param-type"><a href="Object3D.html">Object3D</a></span>, camera : <span class="param-type"><a href="Camera.html">Camera</a></span>, targetScene : <span class="param-type"><a href="Scene.html">Scene</a></span> )</span><span class="type-signature"> : Promise</span> <span class="type-signature">(async) </span></h3>
504504
<div class="method">
505505
<div class="description">
506506
<p>Compiles all materials in the given scene. This can be useful to avoid a

docs/pages/ShaderMaterial.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,18 @@ <h3 class="name" id="extensions" translate="no">.<a href="#extensions">extension
122122
<div class="member">
123123
<h3 class="name" id="fog" translate="no">.<a href="#fog">fog</a><span class="type-signature"> : boolean</span> </h3>
124124
<div class="description">
125-
<p>Define whether the material color is affected by global fog settings; <code>true</code>
125+
<p>Defines whether the material color is affected by global fog settings; <code>true</code>
126126
to pass fog uniforms to the shader.</p>
127+
<p>Setting this property to <code>true</code> requires the definition of fog uniforms. It is
128+
recommended to use <code>UniformsUtils.merge()</code> to combine the custom shader uniforms
129+
with predefined fog uniforms.</p>
130+
<pre><code class="language-js">const material = new ShaderMaterial( {
131+
uniforms: UniformsUtils.merge( [ UniformsLib[ 'fog' ], shaderUniforms ] );
132+
vertexShader: vertexShader,
133+
fragmentShader: fragmentShader,
134+
fog: true
135+
} );
136+
</code></pre>
127137
<p>Default is <code>false</code>.</p>
128138
</div>
129139
</div>

0 commit comments

Comments
 (0)