79798636

Date: 2025-10-24 10:04:41
Score: 0.5
Natty:
Report link

While not really answering the question on why the shader misbehaves, I did find a solution for my problem.

It comes down to me misunderstanding how stencil tests work. It turns out you can control stencil buffer writes by discarding the fragment in the fragment shader. This lets me have one subpass that writes to the stencil buffer in appropriate places and another one after it that uses to discard unneeded fragments.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jim Morrison