So I know HDRP isn't fully supported yet, but I've been running into some problems converting (relatively simple) Amplify shaders to a project using HDRP. I wanted to check if there were any known workarounds or if we should simply avoid HDRP for the timebeing.
Now, I'm relatively new to Unity having moved from Unreal, so my understanding here could be wrong, but I think I've narrowed down the issue to two problems.
First, nodes that access the renderbuffer don't seem to work in HDRP. I couldn't narrow it down specifically, but Screen Position, Screen Params, Surface Depth, and/or Projection Params were causing the shader to fail with this error:
- Code: Select all
redefinition of 'PackedVaryingsToPS::vpassInterpolators1'
Compiling Vertex program with UNITY_PASS_MOTIONVECTORS _DITHERTYPE_HORIZONTAL
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR
Second, post process effects don't work at all. They don't produce compile errors, but don't work when applied to a camera.
Any ideas, or should we just switch back to the normal render pipeline?