diff --git a/docs/api/en/renderers/WebGLRenderer.html b/docs/api/en/renderers/WebGLRenderer.html index a0be922c96eb9e..667f67093db9b2 100644 --- a/docs/api/en/renderers/WebGLRenderer.html +++ b/docs/api/en/renderers/WebGLRenderer.html @@ -169,8 +169,8 @@

[property:Object extensions]

-

[property:number outputEncoding]

-

Defines the output encoding of the renderer. Default is [page:Textures THREE.LinearEncoding].

+

[property:number outputColorSpace]

+

Defines the output colorspace of the renderer. Default is [page:Textures THREE.LinearEncoding].

If a render target has been set using [page:WebGLRenderer.setRenderTarget .setRenderTarget] then renderTarget.texture.encoding will be used instead.

See the [page:Textures texture constants] page for details of other formats.

diff --git a/docs/api/zh/renderers/WebGLRenderer.html b/docs/api/zh/renderers/WebGLRenderer.html index 45bf74f5b38f44..c3e048ba676566 100644 --- a/docs/api/zh/renderers/WebGLRenderer.html +++ b/docs/api/zh/renderers/WebGLRenderer.html @@ -147,7 +147,7 @@

[property:Object extensions]

-

[property:number outputEncoding]

+

[property:number outputColorSpace]

定义渲染器的输出编码。默认为[page:Textures THREE.LinearEncoding]

如果渲染目标已经使用 [page:WebGLRenderer.setRenderTarget .setRenderTarget]、之后将直接使用renderTarget.texture.encoding

查看[page:Textures texture constants]页面以获取其他格式细节

diff --git a/docs/examples/en/loaders/GLTFLoader.html b/docs/examples/en/loaders/GLTFLoader.html index 8621ea03a090e3..94778c7402e114 100644 --- a/docs/examples/en/loaders/GLTFLoader.html +++ b/docs/examples/en/loaders/GLTFLoader.html @@ -138,7 +138,7 @@

Textures

in linear colorspace, always configure [page:WebGLRenderer] as follows when using glTF:

- renderer.outputEncoding = THREE.sRGBEncoding; + renderer.outputColorSpace = THREE.sRGBEncoding;

GLTFLoader will automatically configure textures referenced from a .gltf or .glb file correctly, with the diff --git a/docs/examples/zh/loaders/GLTFLoader.html b/docs/examples/zh/loaders/GLTFLoader.html index fe9b1dd2316d9c..68bc1a18c72cf2 100644 --- a/docs/examples/zh/loaders/GLTFLoader.html +++ b/docs/examples/zh/loaders/GLTFLoader.html @@ -134,7 +134,7 @@

纹理

颜色空间并显示在屏幕上。除非你需要使用线性颜色空间进行后期处理,否则请在使用glTF的时候将[page:WebGLRenderer]进行如下配置:

- renderer.outputEncoding = THREE.sRGBEncoding; + renderer.outputColorSpace = THREE.sRGBEncoding;

假设渲染器的配置如上所示,则GLTFLoader将可以正确地自动配置从.gltf或.glb文件中引用的纹理。 diff --git a/docs/manual/en/introduction/Color-management.html b/docs/manual/en/introduction/Color-management.html index b5ee0a3c36386c..ad8383eaa37661 100644 --- a/docs/manual/en/introduction/Color-management.html +++ b/docs/manual/en/introduction/Color-management.html @@ -192,7 +192,7 @@

Input color space

⚠️ WARNING: [page:Scene.fog], [page:Scene.background], and [page:WebGLRenderer.setClearColor] - are exceptions to the rule. These properties are unaffected by [page:WebGLRenderer.outputEncoding] + are exceptions to the rule. These properties are unaffected by [page:WebGLRenderer.outputColorSpace] and so must store RGB components in the renderer's output color space.

@@ -219,11 +219,11 @@

Output color space

Output to a display device, image, or video may involve conversion from the open domain Linear-sRGB working color space to another color space. This conversion may be performed in - the main render pass ([page:WebGLRenderer.outputEncoding]), or during post-processing. + the main render pass ([page:WebGLRenderer.outputColorSpace]), or during post-processing.

-renderer.outputEncoding = THREE.sRGBEncoding; // optional with post-processing +renderer.outputColorSpace = THREE.sRGBEncoding; // optional with post-processing