Writing to depth buffer with SV_Depth
Posted: Wed Mar 27, 2019 1:18 am
Hi, I've been using Amplify Shader Editor for several months now and I was wondering if there was any way to write to the depth buffer with SV_Depth within ASE or if it required writing the shader manually. I'm attempting to create a custom hair shader and wish to implement something similar to UE4's "per pixel depth' pin to avoid nasty polygon intersection artifacts (which would allow me to blend the hair cards using their heightmaps). I don't see any way to offset the depth other than the per-polygon depth in the properties panel though. Any help would be greatly appreciated.