- Home /
When only need depth texture
I'm doing some shader works. Let me briefly explain what I' trying to do. I have an object A and B. I need the object A's depth values when B is being rendered. So I render A first and then I get the depth texture and pass it into B's shader. And it works well as expected. but it feels like It's waiting memory and doing unnecessary works by rendering the colors because I dont need them at all. So I wonder if there is a way to disable rendering colors and only do the depth beffering so that I can get the depth texture without rendering colors
Your answer
Follow this Question
Related Questions
Multiple RenderTexture and depth buffer 1 Answer
Rendering different shader when camera get near object 1 Answer
Is it possible to create a depth render of scene using a replacement shader? 0 Answers
Transparency shader that also writes to Camera Depth Texture 0 Answers
"Motion vectors" and "depth with normals" from camera's target texture 1 Answer