-
-
Notifications
You must be signed in to change notification settings - Fork 36k
KTX2Loader: Return LODs through DataTexture's mipmaps field. #25871
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
Conversation
Make parallel calls to createDataTexture for each level, then return them through the mipmaps array
|
@donmccurdy The latest commit structures mipmaps as {data,width,height} POJOs and it renders properly. This sample uses NearestMipmapNearestFilter for minFilter to show the different levels (colors) being rendered, especially visible in the side view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good, thanks! I think we can likely merge after the r152 release this week.
Co-authored-by: Don McCurdy <[email protected]>
Co-authored-by: Levi Pesin <[email protected]>
|
Thank you @emmanueljl! |
Description
Currently, the KTX2Loader is hardcoded to only process the first level. This backwards-compatible PR processes any additional levels and attaches them to the
mipmapsfield of the returned DataTexture.