Display order of objects when using RenderTexture

Hello, I am looking for a render texture for a rawimage texture in ugui.
I have a render texture set to Texture in rawimage in ugui. I am trying to display the camera image in the UI.

This is configured as follows.

However, this method shows objects that should not be visible.
In the screenshot above, there is a Cube and a stick behind the capsule. Since the capsule is large and close to the camera, the cube and bars should not be visible.
However, they are actually displayed in front of the capsule.

These objects are not doing anything to change the order in which the textures are displayed. Therefore, the farther away from the camera, the smaller the object appears, and objects that are between it and the camera should not be displayed.

What could be the cause of this?

bump

Most likely you are simply using shaders that either don’t read from the depth buffer, or don’t write to the depth buffer, or both.

Thank you very much!

I am using DefaultMaterial.
Still, is there a shader involved?

Resolved.
This was due to a change in the depth stencil format of the render texture