Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions manual/en/post-processing.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ <h2 id="-rendertoscreen-"><code class="notranslate" translate="no">renderToScree
<p>Looking inside
<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/postprocessing/BloomPass.js"><code class="notranslate" translate="no">BloomPass.js</code></a>
I found this line:</p>
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">this.copyUniforms[ "opacity" ].value = strength;
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">this.combineUniforms[ 'strength' ].value = strength;
</pre>
<p>So we can set the strength by setting</p>
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">bloomPass.copyUniforms.opacity.value = someValue;
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">bloomPass.combineUniforms.strength.value = someValue;
</pre>
<p>Similarly looking in
<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/postprocessing/FilmPass.js"><code class="notranslate" translate="no">FilmPass.js</code></a>
Expand All @@ -173,7 +173,7 @@ <h2 id="-rendertoscreen-"><code class="notranslate" translate="no">renderToScree
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
{
const folder = gui.addFolder('BloomPass');
folder.add(bloomPass.copyUniforms.opacity, 'value', 0, 2).name('strength');
folder.add(bloomPass.combineUniforms.strength, 'value', 0, 2).name('strength');
folder.open();
}
{
Expand Down Expand Up @@ -283,4 +283,4 @@ <h2 id="-rendertoscreen-"><code class="notranslate" translate="no">renderToScree



</body></html>
</body></html>
Loading