Explorar el Código

Fixes typos in RenderPipeline related docs (#33034)

James Wheare hace 4 días
padre
commit
430111e2dc

+ 4 - 4
src/nodes/display/RenderOutputNode.js

@@ -5,9 +5,9 @@ import { NoColorSpace, NoToneMapping } from '../../constants.js';
 import { ColorManagement } from '../../math/ColorManagement.js';
 
 /**
- * Normally, tone mapping and color conversion happens automatically
- * before outputting pixel too the default (screen) framebuffer. In certain
- * post processing setups this happens to late because certain effects
+ * Normally, tone mapping and color conversion happens automatically just
+ * before outputting a pixel to the default (screen) framebuffer. In certain
+ * post processing setups this is too late because some effects such as FXAA
  * require e.g. sRGB input. For such scenarios, `RenderOutputNode` can be used
  * to apply tone mapping and color space conversion at an arbitrary point
  * in the effect chain.
@@ -136,7 +136,7 @@ class RenderOutputNode extends TempNode {
 export default RenderOutputNode;
 
 /**
- * TSL function for creating a posterize node.
+ * TSL function for creating a render output node.
  *
  * @tsl
  * @function

+ 2 - 2
src/renderers/common/RenderPipeline.js

@@ -49,8 +49,8 @@ class RenderPipeline {
 		 * Whether the default output tone mapping and color
 		 * space transformation should be enabled or not.
 		 *
-		 * It is enabled by default by it must be disabled when
-		 * effects must be executed after tone mapping and color
+		 * This is enabled by default but it must be disabled for
+		 * effects that expect to be executed after tone mapping and color
 		 * space conversion. A typical example is FXAA which
 		 * requires sRGB input.
 		 *

粤ICP备19079148号