- Home /
Camera --> get Depth as Texture (Best Gray)
What I need is the Depth as a texture. Lets say I have an object, the texture should be now black on the background and white where the object is (or the other way around). Hope someone can give me some inputs! Thx
Comment
Answer by TheDarkVoid · Nov 23, 2012 at 03:24 AM
You will wan to use a render texture with your camera. But this require PRO http://docs.unity3d.com/Documentation/Components/class-RenderTexture.html
Answer by Ravart · Nov 23, 2012 at 09:07 AM
I have PRO(3.5), so there is no problem.
Well it would be cool, if I could get the Depth Texture without tinting all gameobjects white. The less cpu the better!
Your answer
![](https://koobas.hobune.stream/wayback/20220613084348im_/https://answers.unity.com/themes/thub/images/avi.jpg)