浏览代码

Merge pull request #16150 from takahirox/TextureDoc

Add note about Texture.flipY/premultiplyAlpha with ImageBitmap to document
WestLangley 6 年之前
父节点
当前提交
9d6c6a84f9
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      docs/api/en/textures/Texture.html
  2. 4 0
      docs/api/zh/textures/Texture.html

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

@@ -189,11 +189,15 @@
 		<p>
 		<p>
 		False by default, which is the norm for PNG images. Set to true if the RGB values have
 		False by default, which is the norm for PNG images. Set to true if the RGB values have
 		been stored premultiplied by alpha.
 		been stored premultiplied by alpha.
+		Note that this property has no effect for [link:https://developer.mozilla.org/de/docs/Web/API/ImageBitmap ImageBitmap].
+		You need to configure on bitmap creation instead. See [page:ImageBitmapLoader].
 		</p>
 		</p>
 
 
 		<h3>[property:boolean flipY]</h3>
 		<h3>[property:boolean flipY]</h3>
 		<p>
 		<p>
 		True by default. Flips the image's Y axis to match the WebGL texture coordinate space.
 		True by default. Flips the image's Y axis to match the WebGL texture coordinate space.
+		Note that this property has no effect for [link:https://developer.mozilla.org/de/docs/Web/API/ImageBitmap ImageBitmap].
+		You need to configure on bitmap creation instead. See [page:ImageBitmapLoader].
 		</p>
 		</p>
 
 
 		<h3>[property:number unpackAlignment]</h3>
 		<h3>[property:number unpackAlignment]</h3>

+ 4 - 0
docs/api/zh/textures/Texture.html

@@ -188,11 +188,15 @@
 		<p>
 		<p>
 			默认为false,这是PNG图像的规范。
 			默认为false,这是PNG图像的规范。
 			如果RGB值已被Alpha预乘,请将其设为true。
 			如果RGB值已被Alpha预乘,请将其设为true。
+			Note that this property has no effect for [link:https://developer.mozilla.org/de/docs/Web/API/ImageBitmap ImageBitmap].
+			You need to configure on bitmap creation instead. See [page:ImageBitmapLoader].
 		</p>
 		</p>
 
 
 		<h3>[property:boolean flipY]</h3>
 		<h3>[property:boolean flipY]</h3>
 		<p>
 		<p>
 		默认为true。翻转图像的Y轴以匹配WebGL纹理坐标空间。
 		默认为true。翻转图像的Y轴以匹配WebGL纹理坐标空间。
+		Note that this property has no effect for [link:https://developer.mozilla.org/de/docs/Web/API/ImageBitmap ImageBitmap].
+		You need to configure on bitmap creation instead. See [page:ImageBitmapLoader].
 		</p>
 		</p>
 
 
 		<h3>[property:number unpackAlignment]</h3>
 		<h3>[property:number unpackAlignment]</h3>