Commit e76a81e
fix(dat): render DXTL textures opaque
DXTL's fourth channel is luminance, not transparency - it premultiplies
the colour and the texture is opaque. ProcessImageFile kept that channel
as alpha, so DXTL content (all skill icons) rendered at ~35-60% opacity:
washed out and semi-transparent. Force alpha to 255 after premultiplying.
Confirmed against real skill icons (0x154c4, 0x6155, both ATEXDXTL) which
now decode to full opacity; visually verified via exported DDS.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3217303 commit e76a81e
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
344 | 346 | | |
345 | 347 | | |
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
349 | 351 | | |
350 | 352 | | |
| 353 | + | |
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
| |||
0 commit comments