Update README.md

This commit is contained in:
Rich Geldreich
2026-02-10 13:13:20 -05:00
committed by GitHub
parent 36601115cd
commit ac269675d3

View File

@@ -1,7 +1,7 @@
# Python+GLSL Shader Deblocking Sample
This sample demonstrates how to use a simple pixel shader to greatly reduce
ASTC block artifacts, which can be quite noticeable when the block size goes
ASTC texture block artifacts, which can be quite noticeable when the block size goes
beyond roughly 6x6. The basic idea: instead of always sampling the texture using
a single tap, you instead sample the texture either one time or X times with a simple low pass filter,
depending on whether or not the sample location is near a block edge. The multiple filter taps around
@@ -16,6 +16,8 @@ to this shader, so it doesn't blindly blur across sharp edges - like we do while
CPU deblocking before transcoding to BC7 or other LDR texture formats. It's also possible
to add deblocking filter awareness to our ASTC/XUASTC/etc. encoders.
Note: We're amazed the GPU hardware vendors haven't implemented this feature directly in silicon yet. It's obviously extremely useful.
You'll need these Python dependencies to run it:
```
pip install numpy Pillow glfw PyOpenGL