We are currently making a title for the PS4, and we made some custom shaders using ASE. They work well on PC but fail to compile when targetting the PS4.
Errors like this:
- Code: Select all
Shader error in 'Dome_Energy': Program 'Frag', storage class 'uniform' may not be used in this context at line 95 (on ps4)
Compiling Fragment program
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 UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR
Shader error in 'Dome_Energy': Program 'Frag', expected '}' after constant buffer at line 750 (on ps4)
Compiling Fragment 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 UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR
versions: Unity 2018.3.0f2, HDRP 4.6.0 and ASE v1.6.1.003.
Any help will be appreciated, thanks !