Skip to content
Commit 07f6713a authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

scene: Add pixel grid snapping debug pass

The debug shader is targeted to help with debugging blurriness when
using fractional scaling.

The shader works as follows:

- if the vertex coordinate has fractional part, the item will be
  highlighted with blue color
- if the texture coordinate (in device pixels) has fractional part,
  the item will be highlighted with red color

The shader can be toggled by setting the KWIN_SCENE_VISUALIZE=fractional
environment variable.
parent 6f5aa9e4
Pipeline #380311 failed with stage
in 11 minutes and 50 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment