- Home /
This question was
closed Nov 23, 2012 at 12:02 PM by
Graham-Dunnett for the following reason:
Duplicate Question
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
can't cause there is already an answer :( Any ad$$anonymous$$ can close this one!
Answer by Democre · Nov 23, 2012 at 12:52 AM
I seem to remember getting an effect like this from playing around with the "Funky glowing objects" demo that was on Unity resources. It involved using a replacement shader.
You could also start with the depth of field full screen image effect or some other depth based effect and mutate the code.
Obviously these will only work in pro.