|
@@ -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>.<vec4></span>, options : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.<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
|
|
|
|
|
+"light shafts". 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>.<vec2></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.<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>.<vec4></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.<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>.<vec4></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.<vec4></span> </h3>
|
|
|
<div class="method">
|
|
<div class="method">
|
|
|
<div class="description">
|
|
<div class="description">
|