This can be achieved by adding multisampled render buffer as render target and then blitting it to a fbo with normal texture as explained in webgl-framebuffer-multisampling on StackOverflow.
There is a WIP msaa example that uses raw gl calls for renderbuffers and blitting. ctx.renderbuffer is already implemented so code could be simplified.
My idea for ideal api would be probable single samples param and allocation of intermediate render buffers happening automatically.
This can be achieved by adding multisampled render buffer as render target and then blitting it to a fbo with normal texture as explained in webgl-framebuffer-multisampling on StackOverflow.
There is a WIP msaa example that uses raw gl calls for renderbuffers and blitting.
ctx.renderbuffer
is already implemented so code could be simplified.My idea for ideal api would be probable single
samples
param and allocation of intermediate render buffers happening automatically.otherwise we would need to invent new
blit
pass type and do sth like