-
-
Notifications
You must be signed in to change notification settings - Fork 13
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mipmap sampling for textures #10
Comments
I've refrained from adding mipmaps since it introduces an asymmetrical API between WebGL and WebGPU since the latter does not implement it natively (instead, you're expected to implement it yourself). WebGPU gives better tools for this though, and although I first implemented this library to show how similar you can design WebGL2/WebGPU, I can allow such a common case for WebGL. For future reference, if you find yourself wanting low-level access to renderer state, refer to mangled internals as follows: Lines 4 to 14 in 7c50eae
|
Released in v0.3.0 under |
Hello,
I am getting some artifacts when using
Texture
uniforms, which I think are due to the lack of mipmaps for the textures. I see that theFilter
option only acceptsnearest
andlinear
, but no mipmaps.Do you have any plan on implementing mipmaps ? Or do you have a workaround ? I could load the textures on the GPU using directly the native WebGL API, but then since I don't have access to the program, I don't know how to bind them to the uniforms.
Thank you !
The text was updated successfully, but these errors were encountered: