Page 1 of 1

SRP templates completly broken

PostPosted: Wed Mar 27, 2019 3:27 pm
by JonL
Hey guys!
Just updated to unity 2018.3.9f1 and am using HDRP 4.1.0
I followed your instruction on how to install the SRP assets for HDRP and everything is pink now. The only shader template that works is the unlit one. The shader's included after adding in the HDRP nodes ( nodes first and not the legacy packages) none of them work.

Compiling both the lit and pbr templates doesn't work as it looks like theirs an error in the HDShadowAlgorithms.hlsl shader.

im attaching the errors I have:



Shader error in 'HD Lit Refraction': 'GetNormalWS': no matching 4 parameter function at line 252 (on d3d11)

Compiling Vertex program with DECALS_OFF
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

Shader error in 'HD Lit Refraction': 'GetNormalWS': no matching 4 parameter function at line 958 (on d3d11)

Compiling Vertex program with UNITY_PASS_SHADOWCASTER
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


Shader error in 'HD Lit Refraction': "Undefined punctual shadow filter algorithm" at /Production/Winter_cinematic_1.0/Winter_cinematic_trailer_content/Library/PackageCache/[email protected]/Runtime/Lighting/Shadow/HDShadowAlgorithms.hlsl(32) (on d3d11)

Compiling Vertex program with DECALS_3RT USE_CLUSTERED_LIGHTLIST SHADOW_LOW
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

Shader error in 'HD Lit Iridescence': invalid subscript 'geomNormalWS' at line 253 (on d3d11)

Compiling Vertex program with DECALS_OFF
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

Shader error in 'HD Lit Iridescence': invalid subscript 'geomNormalWS' at line 983 (on d3d11)

Compiling Vertex program with UNITY_PASS_SHADOWCASTER
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

Re: SRP templates completly broken

PostPosted: Thu Mar 28, 2019 1:56 pm
by JonL
oh.. just noticed that the version i have is probably wrong on SRP.. tricky that you need to manually update it to 4.10.0
Hopefully this will fix my issue.

Re: SRP templates completly broken

PostPosted: Thu Mar 28, 2019 2:02 pm
by JonL
yes this fixed it. Unfortunately Unity by default unity pulls in 4.1.0 for the SRP in the package manager. You need to switch it to 4.10.0 and update. Then everything is working fine!

Re: SRP templates completly broken

PostPosted: Tue Apr 02, 2019 1:08 pm
by Amplify_Borba
Hey there, thank you for getting in touch and for letting us know that you've dealt with the issue!

Also, please note that whenever you update ASE, you should always re-extract the unity packages containing the shader templates for the SRP verson being used in order to update the templates should there be any fixes or improvements made to them.