Skip to content

Conversation

@AnriTool
Copy link
Contributor

I added a test to check the decoded image with the result from dxt-js. The result of dxt-js was written to json file in advance.

I made the spread of the expected result in +-1 value. The difference of a pixel, even if all its colors will be shifted by 1 - not noticeable.
Difference in 1 unit can occur due to divisions and rounding of values, when calculating the palette.

I made tests on dxt1, dxt3 and dxt5.
dxt-js does not support dxt2, dxt4, these encoding methods differ from dxt3 and dxt4 only by multiplication of pixel colors by alpha, there is no such parameter in dxt-js.

@AnriTool AnriTool marked this pull request as draft June 17, 2025 15:02
@AnriTool AnriTool closed this by deleting the head repository Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant