Skip to content

Commit 0d43ae1

Browse files
authored
Merge pull request #16164 from WestLangley/dev-docs_texture
Docs: Corrected definition of Texture.premultiplyAlpha
2 parents 9d6c6a8 + d5ce87d commit 0d43ae1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/api/en/textures/Texture.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,16 @@ <h3>[property:boolean generateMipmaps]</h3>
187187

188188
<h3>[property:boolean premultiplyAlpha]</h3>
189189
<p>
190-
False by default, which is the norm for PNG images. Set to true if the RGB values have
191-
been stored premultiplied by alpha.
190+
If set to *true*, the alpha channel, if present, is multiplied into the color channels when the texture is uploaded to the GPU. Defaut is *false*.<br /><br />
191+
192192
Note that this property has no effect for [link:https://developer.mozilla.org/de/docs/Web/API/ImageBitmap ImageBitmap].
193193
You need to configure on bitmap creation instead. See [page:ImageBitmapLoader].
194194
</p>
195195

196196
<h3>[property:boolean flipY]</h3>
197197
<p>
198-
True by default. Flips the image's Y axis to match the WebGL texture coordinate space.
198+
If set to *true*, the texture is flipped along the vertical axis when uploaded to the GPU. Default is *true*.<br /><br />
199+
199200
Note that this property has no effect for [link:https://developer.mozilla.org/de/docs/Web/API/ImageBitmap ImageBitmap].
200201
You need to configure on bitmap creation instead. See [page:ImageBitmapLoader].
201202
</p>

0 commit comments

Comments
 (0)