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
{{ message }}
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
First, color_array[0] is written in BGRA order rather than RGBA, so three indices have something in B (and zero in R), but index 0 has the endpoint color in R (and zero in B).
Also the line color_array[1].g = col0[1]; seems like a bug — it uses the color of the first endpoint where the second endpoint probably should be used, and only for one component — blue has col1[0].
I don't know what // Does bit expansion before interpolation. comment means though, maybe something is intentional here, but that looks completely strange. CTX1 is supposed to be pretty much the equivalent of DXT3/DXT5 color encoding, but for two 8-bit components rather than RGB565 according to http://fileadmin.cs.lth.se/cs/Personal/Michael_Doggett/talks/unc-xenos-doggett.pdf
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In BlockCTX1::evaluatePalette, there appears to be pretty weird logic in two places.
First,
color_array[0]
is written in BGRA order rather than RGBA, so three indices have something in B (and zero in R), but index 0 has the endpoint color in R (and zero in B).Also the line
color_array[1].g = col0[1];
seems like a bug — it uses the color of the first endpoint where the second endpoint probably should be used, and only for one component — blue hascol1[0]
.I don't know what
// Does bit expansion before interpolation.
comment means though, maybe something is intentional here, but that looks completely strange. CTX1 is supposed to be pretty much the equivalent of DXT3/DXT5 color encoding, but for two 8-bit components rather than RGB565 according to http://fileadmin.cs.lth.se/cs/Personal/Michael_Doggett/talks/unc-xenos-doggett.pdfThe text was updated successfully, but these errors were encountered: