Godot version
4.0.stable
System information
windows 10, nvidia graphics
Issue description
Setting "Clip+Draw" on a parent and "Clip Only" on it's direct child is an easy way of creating masks for "carving out" part of the parent image, similar to how light masks worked on godot 3.
But unfortunately it only works on vulkan. On opengl the child image is drawn all white.
On vulkan

On opengl

Steps to reproduce
- On an empty scene, create a sprite and set clip_children to Clip+Draw
- Create a new sprite as a child and set clip_children to Clip Only and make it smaller than the parent
- Set the renderer to mobile or forward+ and notice how the child sprite "carves out" the parent sprite, showing what's behind the parent
- Then set the renderer to compatibility and notice how the child sprite is drawn all white (except any transparent parts, which show the parent behind)
Minimal reproduction project
ClipNDrawOnParentPlusClipOnlyOnChildWorksDifferentOnOpenGl.zip
Godot version
4.0.stable
System information
windows 10, nvidia graphics
Issue description
Setting "Clip+Draw" on a parent and "Clip Only" on it's direct child is an easy way of creating masks for "carving out" part of the parent image, similar to how light masks worked on godot 3.
But unfortunately it only works on vulkan. On opengl the child image is drawn all white.
On vulkan
On opengl
Steps to reproduce
Minimal reproduction project
ClipNDrawOnParentPlusClipOnlyOnChildWorksDifferentOnOpenGl.zip