pailhead
pailhead

Reputation: 5431

WebGL rendering to a specific mip map level

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.

Upvotes: 1

Views: 922

Answers (1)

user128511
user128511

Reputation:

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

Upvotes: 2

Related Questions