Просмотр исходного кода

Manual: Improve post processing guide. (#30098)

* doc: Update post-processing.html

Comparing the relevant example file, I found that there is an error here
It is not clear how the document was generated, I found that other related translation documents also have this error

* Update post-processing.html

* Update post-processing.html

---------

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
ChenKuan 1 год назад
Родитель
Сommit
1a82200361
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      manual/en/post-processing.html

+ 4 - 4
manual/en/post-processing.html

@@ -154,10 +154,10 @@ that effect.</p>
 <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>
@@ -173,7 +173,7 @@ this.uniforms.grayscale.value = grayscale;
 <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();
 }
 {
@@ -283,4 +283,4 @@ Hopefully these simple example and the article on
 
 
 
-</body></html>
+</body></html>

粤ICP备19079148号