Moonlit-Games / Ultimate-Water-System

14 stars 7 forks source link

Shaders Error #62

Open 1932161324 opened 6 years ago

1932161324 commented 6 years ago
When I published the project in Unity2017.3, the following problems sometimes occurred, which caused the release failure.
1)Shader error in 'UltimateWater/Variations/Water _ALPHABLEND_ON _CUBEMAP_REFLECTIONS _INCLUDE_SLOPE_VARIANCE _PLANAR_REFLECTIONS_HQ _WATER_RECEIVE_SHADOWS _WATER_REFRACTION _WATER_OVERLAYS _WAVES_FFT _PROJECTION_GRID': invalid subscript 'vec' at Assets/Ultimate Water System/Shaders/Includes/UnityStandardShadow.cginc(126) (on d3d11)

Compiling Vertex program with SHADOWS_CUBE _WAVES_FFT _WATER_OVERLAYS _PROJECTION_GRID 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_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR

2)Shader error in 'UltimateWater/Variations/Water _ALPHABLEND_ON _CUBEMAP_REFLECTIONS _INCLUDE_SLOPE_VARIANCE _PLANAR_REFLECTIONS_HQ _WATER_RECEIVE_SHADOWS _WATER_REFRACTION _WATER_OVERLAYS _WAVES_FFT _PROJECTION_GRID': unexpected #endif at Assets/Ultimate Water System/Shaders/Includes/UnityStandardShadow.cginc(252) (on d3d11)

Compiling Vertex program with SHADOWS_CUBE _WAVES_FFT _WATER_OVERLAYS _PROJECTION_GRID 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_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR

1932161324 commented 6 years ago

I used the UWS version number is V2.1.0。