UNSIGNED_ SHORT_5_5_5_1, then the typed array must be Uint16Array.y Here's a simple example: let pixels = new Uint8Array(25*25); gl.readPixels(0, 0, 25, 25, ...
確定! 回上一頁