Rendering 3D in 2D with SubViewports, but texture is not clearing whatsoever

Godot Version

4.4

Question

I am trying to create a simple square card object that shows a bun model on a 2D frame. I followed the using viewports tutorial and created my SubViewport with a structure as shown in the image below.

However, even though I set the clear mode to ALWAYS, the previous frame is still not erased from the buffer, causing visual glitches (sorry for the low quality GIF):

output

Is there some settings that I have been overlooking?

Setting the environment to “Keep” is probably what’s going wrong, try using “Clear Color”

1 Like

:glowing_star:Brilliant fix! That’s exactly the problem, thank you so much for your help~