regl-project / regl

👑 Functional WebGL
MIT License
5.19k stars 320 forks source link

Partial mipmap levels #443

Open codpe opened 6 years ago

codpe commented 6 years ago

Khronos Webgl test suite shows that webgl should work with partial mipmap levels. https://github.com/KhronosGroup/WebGL/blob/master/sdk/tests/conformance2/textures/misc/tex-mipmap-levels.html

When I try regl with partial mipmap level data, regl throws exceptions: Uncaught Error: (regl) missing or incomplete mipmap data

Is there a way in regl to create a texture with partial mipmap level data?

mikolalysenko commented 6 years ago

Hmm... Maybe the texture check is too aggressive. We should make some unit tests to confirm this behavior.

wwwtyro commented 6 years ago

I think that's WebGL2 conformance - is the same true of WebGL? I don't see mention of partial levels in https://github.com/KhronosGroup/WebGL/blob/master/sdk/tests/conformance/textures/misc/texture-mips.html