JCPalmer Posted September 4, 2015 Share Posted September 4, 2015 Seems like the 0,0 in the gl call should be replaced with x,y, right?public readPixels(x: number, y: number, width: number, height: number): Uint8Array { var data = new Uint8Array(height * width * 4); this._gl.readPixels(0, 0, width, height, this._gl.RGBA, this._gl.UNSIGNED_BYTE, data); return data;} Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 4, 2015 Share Posted September 4, 2015 OMG...will fix it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.