Depth Mask Shaders?
I've been trying to figure out how to implement a Depth Mask Shader in Unreal Engine 4 for like two days now. I'm coming form unity where it was pretty much just ticking a flag in a shader script and applying that.
Would anyone know how I can create one in UE4? If it involves code, that's fine too, but I can't find any good documentation on what to do in code to enable this, either.
In case it's called something else here, this is what I'm referring to: http://wiki.unity3d.com/index.php?title=DepthMask
Thanks in advance!
Edit: Just to give context, I'm attempting to use a Depth Shader Mask to allow me to write the output of a second camera onto the surface of a mesh. I know about the Scene Capture 2D object, but it doesn't suit my needs exactly.
DepthFade node inside the material editor is what you are looking for i suppose.
answered Mar 23 '14 at 11:06 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here