I've been researching into this specific issue since it's come up a few times and it appears to be a problem with the renderer godot 4 is using.
- here are a few options you can do to try to fix it
- Make sure your graphic drivers are up to date, and if they are not try to update them
- Run the game with the
--rendering-driver opengl3
flag to force Godot to use the old opengl3 drivers
- If you are running and older GPU or something like intel integrated graphics you may need to consider upgrading to a newer GPU
Those are the current recommended solutions as the issue has to do with the renderer and not coding specific issues on my end from the looks of things. Could you also let me know what the OS that you are running is and what graphics card you are using, that could help me isolate which users are more likely to get this issue