Fix SSGI shader for backend Y-convention differences


Two bugs caused SSGI (ssgi_ssilvb.frag) to produce completely different
results on OpenGL vs Vulkan/D3D/Metal, while non-OpenGL backends agreed
with each other.

FRAGCOORD.y in jitter:
  FRAGCOORD.y is bottom-up on OpenGL but top-down on Vulkan/D3D/Metal,
  so the interleaved gradient noise jitter produced a different value for
  every visual pixel between backends, making the per-pixel SSGI noise
  pattern completely uncorrelated. Replace with TEXTURE_UV * INPUT_SIZE,
  which gives consistent bottom-up pixel coordinates on all backends.

sampleUV direction:
  The previous formula applied -qt_normalAdjustViewportFactor to the
  entire direction vector (both X and Y). X needs no sign adjustment
  since INPUT_UV.x is consistent across backends; only Y needs the flip.
  Replace with INPUT_UV + delta * omega * vec2(aspect.x,
  qt_normalAdjustViewportFactor) so omega.x maps correctly to right and
  omega.y maps correctly to up on all backends.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pick-to: 6.12 6.11
Change-Id: I4586bf564cd5817f52442fcb719ac3fe66103d49
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commit7dc7fb687225cb0af8ff5405e6464600d8adb945
parentb4a6bfd08e5e39f996147f1135f304b49ec7dbc5
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeThu, 2 Jul 2026 07:45:40 +0000