I’m migrating an existing project to Unity 6 Preview. Everything went fine except for distortion in Shader Graph shaders – they only work in the Editor, but not in builds. Shaders that use distortion in addition to normal transparency are rendered with zero distortion, and distortion-only shaders are rendered as solid pink.
I’ve double-checked all settings, and distortion is enabled everywhere:
- Shader Graph > Graph Settings > Distortion = On.
- Project Settings > Frame Settings (Default Values) > Camera > Rendering > Distortion = On.
- Project Settings > Quality > HDRP > Material > Distortion = On (for all quality levels).
I’ve checked my camera’s frame settings, and Distortion is set to On there as well. The shader is added to ‘Always Include’ in Project Settings > Graphics, to make sure it doesn’t get stripped from the build. HDRP is updated to 17.0.3 (August 06, 2024). I also tried to override the frame settings in the camera and forced Distortion to On (despite the fact that it was already on by default), but it didn’t help. Clean builds didn’t help as well.
I thought that there was some problem with my existing project and created a bare-bones 3D HDRP project from scratch. Same deal – distortion still works only in Editor, and doesn’t work in builds. All the steps and checks above didn’t help. Overall, it looks like Unity 6 doesn’t include Distortion pass in builds.
Does anyone have any idea how to make distortion work? Should I submit a bug?