Godot Version
v4.5.stable.official
Question
I’m currently trying to understand the stencil buffer and I’ve run into a problem I can’t quite solve.
The release page says “Even if geometry is not rendering itself on screen, we insert its shape into the stencil buffer.”, and I’m stuck there. How do you write to the stencil buffer using an object that doesn’t get rendered? I’ve been experimenting with the example shader code from https://github.com/godotengine/godot/pull/80710, but I can’t manage to make an object write to the buffer unless it’s completely opaque. Any ideas? ![]()