Is there a way to use it as an occluder, without rendering?

I’m thinking of ways to optimize.

Is there a way to disable MainPass Render and DepthPass Render, and use it as an occluder?