It might work with older versions. The stencil buffer is in Godot since 4.5 but just the visual effect could be usable in older versions. But I did not test other versions, so I wrote just 4.6