소스 검색

Docs: Clean up color space references. (#25922)

* Docs: Update references to ColorSpace

* ColorSpace / string

* Revert unintended change
Don McCurdy 2 년 전
부모
커밋
fbf16ee984

+ 2 - 2
docs/api/en/constants/Core.html

@@ -27,7 +27,7 @@ THREE.LinearSRGBColorSpace
 		</code>
 		</code>
 		<p>[page:NoColorSpace] defines no specific color space.</p>
 		<p>[page:NoColorSpace] defines no specific color space.</p>
 		<p>
 		<p>
-			[page:SRGBColorSpace] (“sRGB”) refers to the color space defined by the
+			[page:SRGBColorSpace] (“srgb”) refers to the color space defined by the
 			Rec. 709 primaries, D65 white point, and nonlinear sRGB transfer
 			Rec. 709 primaries, D65 white point, and nonlinear sRGB transfer
 			functions. sRGB is the default color space in CSS, and is often found in
 			functions. sRGB is the default color space in CSS, and is often found in
 			color palettes and color pickers. Colors expressed in hexadecimal or CSS
 			color palettes and color pickers. Colors expressed in hexadecimal or CSS
@@ -35,7 +35,7 @@ THREE.LinearSRGBColorSpace
 		</p>
 		</p>
 
 
 		<p>
 		<p>
-			[page:LinearSRGBColorSpace] (“Linear-sRGB”) refers to the sRGB color space
+			[page:LinearSRGBColorSpace] (“srgb-linear”) refers to the sRGB color space
 			(above) with linear transfer functions. Linear-sRGB is the working color
 			(above) with linear transfer functions. Linear-sRGB is the working color
 			space in three.js, used throughout most of the rendering process. RGB
 			space in three.js, used throughout most of the rendering process. RGB
 			components found in three.js materials and shaders are in the Linear-sRGB
 			components found in three.js materials and shaders are in the Linear-sRGB

+ 1 - 1
docs/api/en/renderers/WebGLRenderer.html

@@ -199,7 +199,7 @@ document.body.appendChild( renderer.domElement );
 			<li>`WEBGL_compressed_texture_etc1`</li>
 			<li>`WEBGL_compressed_texture_etc1`</li>
 		</ul>
 		</ul>
 
 
-		<h3>[property:number outputColorSpace]</h3>
+		<h3>[property:string outputColorSpace]</h3>
 		<p>
 		<p>
 			Defines the output color space of the renderer. Default is [page:Textures THREE.SRGBColorSpace].
 			Defines the output color space of the renderer. Default is [page:Textures THREE.SRGBColorSpace].
 		</p>
 		</p>

+ 4 - 7
docs/api/en/textures/Texture.html

@@ -253,14 +253,11 @@
 			[link:http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml glPixelStorei] for more information.
 			[link:http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml glPixelStorei] for more information.
 		</p>
 		</p>
 
 
-		<h3>[property:number colorSpace]</h3>
+		<h3>[property:string colorSpace]</h3>
 		<p>
 		<p>
-			[page:Textures THREE.NoColorSpace] is the default. See the [page:Textures texture constants] 
-			page for details of other formats.<br /><br />
-
-			Note that if this value is changed on a texture after the material has
-			been used, it is necessary to trigger a Material.needsUpdate for this
-			value to be realized in the shader.
+			[page:Textures THREE.NoColorSpace] is the default. Textures containing color data should be
+			annotated with [page:Textures THREE.SRGBColorSpace] or
+			[page:Textures THREE.LinearSRGBColorSpace].
 		</p>
 		</p>
 
 
 		<h3>[property:Integer version]</h3>
 		<h3>[property:Integer version]</h3>

+ 2 - 2
docs/api/fr/constants/Core.html

@@ -29,14 +29,14 @@ THREE.LinearSRGBColorSpace
 			[page:NoColorSpace] ne définit aucun espace colorimétrique spécifique. 
 			[page:NoColorSpace] ne définit aucun espace colorimétrique spécifique. 
 		</p>
 		</p>
 		<p>
 		<p>
-			[page:SRGBColorSpace] (“sRGB”) fait référence à l'espace colorimétrique défini par la Rec. 709 primaires, D65
+			[page:SRGBColorSpace] (“srgb”) fait référence à l'espace colorimétrique défini par la Rec. 709 primaires, D65
 			point blanc et fonctions de transfert sRGB non linéaires. sRGB est l'espace colorimétrique par défaut dans
 			point blanc et fonctions de transfert sRGB non linéaires. sRGB est l'espace colorimétrique par défaut dans
 			CSS, et se trouve souvent dans les palettes de couleurs et les sélecteurs de couleurs. Les couleurs exprimées en
 			CSS, et se trouve souvent dans les palettes de couleurs et les sélecteurs de couleurs. Les couleurs exprimées en
 			notation hexadécimale ou en CSS sont généralement dans l'espace colorimétrique sRGB.
 			notation hexadécimale ou en CSS sont généralement dans l'espace colorimétrique sRGB.
 		</p>
 		</p>
 
 
 		<p>
 		<p>
-			[page:LinearSRGBColorSpace] (“Linear-sRGB”)  fait référence à l'espace colorimétrique sRGB (ci-dessus) avec
+			[page:LinearSRGBColorSpace] (“srgb-linear”)  fait référence à l'espace colorimétrique sRGB (ci-dessus) avec
 			fonctions de transfert linéaires. Linear-sRGB est l'espace colorimétrique de travail dans three.js, utilisé
 			fonctions de transfert linéaires. Linear-sRGB est l'espace colorimétrique de travail dans three.js, utilisé
 			pendant la majeure partie du processus de rendu. Les composants RVB trouvés dans les matériaux three.js
 			pendant la majeure partie du processus de rendu. Les composants RVB trouvés dans les matériaux three.js
 			et dans les shaders sont dans l'espace colorimétrique Linear-sRGB.
 			et dans les shaders sont dans l'espace colorimétrique Linear-sRGB.

+ 2 - 2
docs/api/it/constants/Core.html

@@ -29,14 +29,14 @@ THREE.LinearSRGBColorSpace
 			[page:NoColorSpace] non definisce uno spazio colore specifico. 
 			[page:NoColorSpace] non definisce uno spazio colore specifico. 
 		</p>
 		</p>
 		<p>
 		<p>
-			[page:SRGBColorSpace] (“sRGB”) si riferisce allo spazio colore definito dal Rec. 709
+			[page:SRGBColorSpace] (“srgb”) si riferisce allo spazio colore definito dal Rec. 709
       primari, punto di bianco D65 e funzioni di trasferimento sRGB non lineare. sRGB è lo spazio
       primari, punto di bianco D65 e funzioni di trasferimento sRGB non lineare. sRGB è lo spazio
       colore predefinito nei CSS, e si trova spesso nelle palette dei colori e nei selettori di colore.
       colore predefinito nei CSS, e si trova spesso nelle palette dei colori e nei selettori di colore.
       I colori espressi in esadecimale o in notazione CSS sono tipicamente nello spazio colore sRGB.
       I colori espressi in esadecimale o in notazione CSS sono tipicamente nello spazio colore sRGB.
 		</p>
 		</p>
 
 
 		<p>
 		<p>
-			[page:LinearSRGBColorSpace] (“Linear-sRGB”) si riferisce allo spazio colore sRGB (sopra) con
+			[page:LinearSRGBColorSpace] (“srgb-linear”) si riferisce allo spazio colore sRGB (sopra) con
       funzioni di trasferimento lineare. Linear-sRGB è lo spazio colore di lavoro in three.js, utilizzato
       funzioni di trasferimento lineare. Linear-sRGB è lo spazio colore di lavoro in three.js, utilizzato
       durante la maggior parte del processo di rendering. I componenti RGB presenti nei materiali, negli 
       durante la maggior parte del processo di rendering. I componenti RGB presenti nei materiali, negli 
       shader in three.js si trovano nello spazio colore Linear-sRGB.
       shader in three.js si trovano nello spazio colore Linear-sRGB.

+ 1 - 1
docs/api/it/renderers/WebGLRenderer.html

@@ -175,7 +175,7 @@
 		</ul>
 		</ul>
 		</p>
 		</p>
 
 
-		<h3>[property:number outputColorSpace]</h3>
+		<h3>[property:string outputColorSpace]</h3>
 		<p>Definisce la codifica di output del renderer. Il valore predefinito è [page:Textures THREE.SRGBColorSpace].</p>
 		<p>Definisce la codifica di output del renderer. Il valore predefinito è [page:Textures THREE.SRGBColorSpace].</p>
 		<p>Se il target render è stato impostato utilizzando [page:WebGLRenderer.setRenderTarget .setRenderTarget],
 		<p>Se il target render è stato impostato utilizzando [page:WebGLRenderer.setRenderTarget .setRenderTarget],
 			verrà invece utilizzato renderTarget.texture.colorSpace.</p>
 			verrà invece utilizzato renderTarget.texture.colorSpace.</p>

+ 2 - 5
docs/api/it/textures/Texture.html

@@ -225,13 +225,10 @@
 			Vedi [link:http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml glPixelStorei] per maggiori informazioni.
 			Vedi [link:http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml glPixelStorei] per maggiori informazioni.
 		</p>
 		</p>
 
 
-		<h3>[property:number colorSpace]</h3>
+		<h3>[property:string colorSpace]</h3>
 		<p>
 		<p>
 		[page:Textures THREE.NoColorSpace] è l'impostazione predefinita.
 		[page:Textures THREE.NoColorSpace] è l'impostazione predefinita.
-		Vedi la pagina [page:Textures texture constants] per i dettagli su altri formati.<br /><br />
-
-		Si noti che questo valore viene modificato su una texture dopo che il materiale è stato utilizzato, 
-		è necessario attivare un Material.needsUpdate affinché questo valore venga realizzato nello shader.
+		Vedi la pagina [page:Textures texture constants] per i dettagli su altri formati.
 		</p>
 		</p>
 
 
 		<h3>[property:Integer version]</h3>
 		<h3>[property:Integer version]</h3>

+ 2 - 2
docs/api/ko/constants/Core.html

@@ -26,14 +26,14 @@ THREE.LinearSRGBColorSpace
 		</code>
 		</code>
 
 
 		<p>
 		<p>
-			[page:SRGBColorSpace] (“sRGB”) refers to the color space defined by the Rec. 709 primaries, D65
+			[page:SRGBColorSpace] (“srgb”) refers to the color space defined by the Rec. 709 primaries, D65
 			white point, and nonlinear sRGB transfer functions. sRGB is the default color space in
 			white point, and nonlinear sRGB transfer functions. sRGB is the default color space in
 			CSS, and is often found in color palettes and color pickers. Colors expressed in
 			CSS, and is often found in color palettes and color pickers. Colors expressed in
 			hexadecimal or CSS notation are typically in the sRGB color space.
 			hexadecimal or CSS notation are typically in the sRGB color space.
 		</p>
 		</p>
 
 
 		<p>
 		<p>
-			[page:LinearSRGBColorSpace] (“Linear-sRGB”) refers to the sRGB color space (above) with
+			[page:LinearSRGBColorSpace] (“srgb-linear”) refers to the sRGB color space (above) with
 			linear transfer functions. Linear-sRGB is the working color space in three.js, used
 			linear transfer functions. Linear-sRGB is the working color space in three.js, used
 			throughout most of the rendering process. RGB components found in three.js materials
 			throughout most of the rendering process. RGB components found in three.js materials
 			and shaders are in the Linear-sRGB color space.
 			and shaders are in the Linear-sRGB color space.

+ 2 - 2
docs/api/pt-br/constants/Core.html

@@ -29,14 +29,14 @@ THREE.LinearSRGBColorSpace
 			[page:NoColorSpace] não define nenhum espaço de cor específico.
 			[page:NoColorSpace] não define nenhum espaço de cor específico.
 		</p>
 		</p>
 		<p>
 		<p>
-			[page:SRGBColorSpace] (“sRGB”) refere-se ao espaço de cores definido pelo Rec. 709 primárias, D65
+			[page:SRGBColorSpace] (“srgb”) refere-se ao espaço de cores definido pelo Rec. 709 primárias, D65
 			ponto branco e funções de transferência sRGB não lineares. sRGB é o espaço de cor padrão em
 			ponto branco e funções de transferência sRGB não lineares. sRGB é o espaço de cor padrão em
 			CSS, e é frequentemente encontrado em paletas e seletores de cores. Cores expressas em
 			CSS, e é frequentemente encontrado em paletas e seletores de cores. Cores expressas em
 			notação hexadecimal ou CSS estão normalmente no espaço de cores sRGB.
 			notação hexadecimal ou CSS estão normalmente no espaço de cores sRGB.
 		</p>
 		</p>
 
 
 		<p>
 		<p>
-			[page:LinearSRGBColorSpace] (“Linear-sRGB”) refere-se ao espaço de cores sRGB (acima) com
+			[page:LinearSRGBColorSpace] (“srgb-linear”) refere-se ao espaço de cores sRGB (acima) com
 			funções de transferência lineares. Linear-sRGB é o espaço de cores de trabalho em three.js, usado
 			funções de transferência lineares. Linear-sRGB é o espaço de cores de trabalho em three.js, usado
 			durante a maior parte do processo de renderização. Componentes RGB encontrados em materiais three.js
 			durante a maior parte do processo de renderização. Componentes RGB encontrados em materiais three.js
 			e os shaders estão no espaço de cores Linear-sRGB.
 			e os shaders estão no espaço de cores Linear-sRGB.

+ 2 - 2
docs/api/zh/constants/Core.html

@@ -26,14 +26,14 @@ THREE.LinearSRGBColorSpace
 		</code>
 		</code>
 
 
 		<p>
 		<p>
-			[page:SRGBColorSpace] (“sRGB”) refers to the color space defined by the Rec. 709 primaries, D65
+			[page:SRGBColorSpace] (“srgb”) refers to the color space defined by the Rec. 709 primaries, D65
 			white point, and nonlinear sRGB transfer functions. sRGB is the default color space in
 			white point, and nonlinear sRGB transfer functions. sRGB is the default color space in
 			CSS, and is often found in color palettes and color pickers. Colors expressed in
 			CSS, and is often found in color palettes and color pickers. Colors expressed in
 			hexadecimal or CSS notation are typically in the sRGB color space.
 			hexadecimal or CSS notation are typically in the sRGB color space.
 		</p>
 		</p>
 
 
 		<p>
 		<p>
-			[page:LinearSRGBColorSpace] (“Linear-sRGB”) refers to the sRGB color space (above) with
+			[page:LinearSRGBColorSpace] (“srgb-linear”) refers to the sRGB color space (above) with
 			linear transfer functions. Linear-sRGB is the working color space in three.js, used
 			linear transfer functions. Linear-sRGB is the working color space in three.js, used
 			throughout most of the rendering process. RGB components found in three.js materials
 			throughout most of the rendering process. RGB components found in three.js materials
 			and shaders are in the Linear-sRGB color space.
 			and shaders are in the Linear-sRGB color space.

+ 1 - 1
docs/api/zh/renderers/WebGLRenderer.html

@@ -151,7 +151,7 @@
 		</ul>
 		</ul>
 		</p>
 		</p>
 
 
-		<h3>[property:number outputColorSpace]</h3>
+		<h3>[property:string outputColorSpace]</h3>
 		<p>定义渲染器的输出编码。默认为[page:Textures THREE.SRGBColorSpace]</p>
 		<p>定义渲染器的输出编码。默认为[page:Textures THREE.SRGBColorSpace]</p>
 		<p>如果渲染目标已经使用 [page:WebGLRenderer.setRenderTarget .setRenderTarget]、之后将直接使用renderTarget.texture.colorSpace</p>
 		<p>如果渲染目标已经使用 [page:WebGLRenderer.setRenderTarget .setRenderTarget]、之后将直接使用renderTarget.texture.colorSpace</p>
 		<p>查看[page:Textures texture constants]页面以获取其他格式细节</p>
 		<p>查看[page:Textures texture constants]页面以获取其他格式细节</p>

+ 2 - 5
docs/api/zh/textures/Texture.html

@@ -209,13 +209,10 @@
 			请参阅[link:http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml glPixelStorei]来了解详细信息。
 			请参阅[link:http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml glPixelStorei]来了解详细信息。
 		</p>
 		</p>
 
 
-		<h3>[property:number colorSpace]</h3>
+		<h3>[property:string colorSpace]</h3>
 		<p>
 		<p>
 		默认值为[page:Textures THREE.NoColorSpace]。
 		默认值为[page:Textures THREE.NoColorSpace]。
-		请参阅[page:Textures texture constants]来了解其他格式的详细信息。<br /><br />
-
-		请注意,如果在材质被使用之后,纹理贴图中这个值发生了改变,
-		需要触发Material.needsUpdate,来使得这个值在着色器中实现。
+		请参阅[page:Textures texture constants]来了解其他格式的详细信息。
 		</p>
 		</p>
 
 
 		<h3>[property:Integer version]</h3>
 		<h3>[property:Integer version]</h3>