You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Textures whose format differs from their file extension are not resolved correctly. File extension is always used as a format.
Compressed textures:
When multiple texture variants are defined, compressed textures (such as ASTC, S3TC, etc.) are neither resolved nor used.
In cases where PNG and/or WEBP formats are defined, they will always be used, and compressed textures will be ignored.
If PNG and/or WEBP formats are not defined, the texture will be selected according to the order of definition, even if it is not supported. atc will be selected in case of the following definition:
Current Behavior
Textures whose format differs from their file extension are not resolved correctly. File extension is always used as a format.
Compressed textures:
When multiple texture variants are defined, compressed textures (such as ASTC, S3TC, etc.) are neither resolved nor used.
In cases where PNG and/or WEBP formats are defined, they will always be used, and compressed textures will be ignored.
If PNG and/or WEBP formats are not defined, the texture will be selected according to the order of definition, even if it is not supported.
atc
will be selected in case of the following definition:Sprite sheets:
First one is always used.
Expected Behavior
The texture file is selected based on user-defined or default priorities and system compatibility.
Steps to Reproduce
Load the manifest.json with the following bundle:
Expected
images/pause-overlay/pause-panel.s3tc.ktx
file requested.Current:
images/pause-overlay/pause-panel.webp
file requested.Environment
pixi.js
version: 7.4.0Possible Solution
Resolver.ts
:formattedAsset.format = format ?? formattedAsset.format ?? utils.path.extname(formattedAsset.src).slice(1);
resolveCompressedTextureUrl.ts
parse method to return valid formatsvalidImages
with the list of supported compressed textures formatsAdditional Information
ASTC will be selected:
The text was updated successfully, but these errors were encountered: