meter"><code>edge0</code></em> &lt; <em class="parameter"><code>x</code></em> &lt; <em class="parameter"><code>edge1</code></em>.
            This is useful in cases where a threshold function with a smooth transition is desired.
            <code class="function">smoothstep</code> is equivalent to:
        </p>
        <p>
</p>
        <pre class="programlisting">    genType t;  /* Or genDType t; */
    t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
    return t * t * (3.0 - 2.0 * t);</pre>
        <p