- Home /
is _CameraDepthTexture available in surface shaders ?
is the _CameraDepthTexture only usable in vert and frag shaders ? not in surface shaders ? Cause I can't get it to work in a surface shader.
I asked this in the forum, but got no response: http://forum.unity3d.com/threads/98911-How-to-view-Camera-s-Depth-Texture
I need it for making a fairly simpel water shader but one that fades out close to the shore (for which I need the depth texture), that's what unity's water does, but it also does a lot of other stuff I don't want and it's way too complicated.
Comment