Closed mcourteaux closed 4 months ago
It looks like that flickering is coming from border color state...
ETC1 is just used to demonstrate sampler UV mode BORDER.
Not a bug.
Even if it's not a bug, it's crucial to assess whichever solution we come up with for #3311. My first-idea fix produces glitches for the smallest LODs. So being able to check what the LOD mipmap chain looks like for these compressed texture formats is important if we want to get it right and fix #3311.
I have not committed the binary shaders because when I rebuild them, literally all shaders gets modified, which is not on-topic for this PR, so I'll leave that to @bkaradzic.
I also updated the positions a little bit to reduce overlap:
So this PR uses time to loop through the different LODs.
This immediately reveals some issues:
Vulkan:
https://github.com/bkaradzic/bgfx/assets/845012/0403ab8c-7a92-411e-9286-9fb00144361a
OpenGL:
https://github.com/bkaradzic/bgfx/assets/845012/161c04a8-5a8a-4d1d-a903-3048feaa9930
ETC1 is flickering badly in deeper LODs.