DXX Raytracer is a fork of the DXX Retro project for Windows. DXX Raytracer uses modern raytracing techniques to update the graphics of the beloved retro game known as Descent.
Other
216
stars
10
forks
source link
Fix for compressed textures with less than 8 bits per pixel (ex:bc4) #18
Compressed textures with less than 8 bits per pixel like bc4 would not load correctly. This was due to the fact that pixel size was stored in number of bytes per pixel. bc4 has 0.5 bytes per pixel and would get truncated to 0 when stored in a integer format. Fixed by storing in number of bits per pixel and only converting to total bytes when needed.
Compressed textures with less than 8 bits per pixel like bc4 would not load correctly. This was due to the fact that pixel size was stored in number of bytes per pixel. bc4 has 0.5 bytes per pixel and would get truncated to 0 when stored in a integer format. Fixed by storing in number of bits per pixel and only converting to total bytes when needed.