-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGL 2 features support #40
Comments
I'll look into transform feedback. As for mulitple drawbuffers though it's not clear to me what there is to do. You can already create a framebuffer with lots of attachments with twgl so for that isn't it just one WebGL call go drawbuffers to use them? Maybe I can have you pass a Open to ideas |
Hello, |
I just use if ( isWebGL2(gl) && colorAttachmentCount > 1 ) {
const colorBuffers = [];
for ( let i = 0; i < colorAttachmentCount; i ++ )
colorBuffers.push( gl.COLOR_ATTACHMENT0 + i );
gl.drawBuffers( colorBuffers );
} |
Sorry I didn't get back to you earlier. Right now if you have 5 attachments say
And you call
you'd like something you can call The problem with calling it on
Another idea would be Maybe that would let you do this?
?!??!? - sorry. I'm just thinking out loud. Not sure what's best. |
why not |
Hi, I am just trying out Twgl and the experience is amazing 馃憤. I just wonder if there are more WebGL 2 features coming soon? Like:
The text was updated successfully, but these errors were encountered: