1
votes

Is it possible to render to a specific mipmap level of a render target in webgl?

Why is level in framebufferTexture2D always set to zero?

The mipmap level of the texture image to attach. Always set to 0.

1

1 Answers

2
votes

No, according to the spec section 4.4.3

level specifies the mipmap level of the texture image to be attached to the framebuffer and must be 0. Otherwise, INVALID_VALUE is generated.

That's a limitation of OpenGL ES 2.0 which WebGL is based on