Skip to content

Commit 8e4cc05

Browse files
committed
fix: remove RGB option from the texture types
1 parent 48a8a6c commit 8e4cc05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vgl/texture.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ vgl.texture = function () {
157157
* Set Raw Texture data using Uint8Array
158158
*
159159
* @param {object} texture texture object to load.
160-
* type: 'RGB' | 'RGBA' | 'Luminance' | 'LuminanceAlpha'.
161-
* texture: Uint8Array representing the format based on the type
162-
* width: width of the texture
163-
* height: height of the texture
160+
* @param {string?} texture.type One of 'RGBA' | 'Luminance' | 'LuminanceAlpha'.
161+
* @param {Uint8Array} texture.data Array representing the format based on the type
162+
* @param {number} texture.width width of the texture
163+
* @param {number} texture.height height of the texture
164164
* @returns {boolean}
165165
*/
166166
this.setTexture = function (texture) {

0 commit comments

Comments
 (0)