Ben Houston 10 лет назад
Родитель
Сommit
f52454cd75
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      docs/api/textures/Texture.html

+ 5 - 0
docs/api/textures/Texture.html

@@ -128,6 +128,11 @@
 		False by default, which is the norm for PNG images. Set to true if the RGB values have been stored premultiplied by alpha.
 		False by default, which is the norm for PNG images. Set to true if the RGB values have been stored premultiplied by alpha.
 		</div>
 		</div>
 
 
+		<h3>[property:number encoding]</h3>
+		<div>
+		Set to THREE.LinearEncoding by default, but supports sRGB, RGBE, RGBM, RGBD, LogLuv and Gamma corrected encodings.  IMPORTANT: 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.
+		</div>
+
 		<h3>[property:object onUpdate]</h3>
 		<h3>[property:object onUpdate]</h3>
 		<div>
 		<div>
 		A callback function, called when the texture is updated (e.g., when needsUpdate has been set to true and then the texture is used).
 		A callback function, called when the texture is updated (e.g., when needsUpdate has been set to true and then the texture is used).

粤ICP备19079148号