Closed eobet closed 6 years ago
Shader error in 'UltimateWater/Variations/Water Volume _ALPHAPREMULTIPLY_ON _WATER_OVERLAYS _WAVES_FFT _PROJECTION_GRID': invalid subscript 'vec' at Assets/Ultimate Water System/Shaders/Includes/UnityStandardShadow.cginc(120) (on d3d11)
Compiling Vertex program with SHADOWS_CUBE _WAVES_FFT _WATER_OVERLAYS 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_RGBM_ENCODING
Error building Player: Shader error in 'UltimateWater/Variations/Water Volume _ALPHAPREMULTIPLY_ON _WATER_OVERLAYS _WAVES_FFT _PROJECTION_GRID': invalid subscript 'vec' at Assets/Ultimate Water System/Shaders/Includes/UnityStandardShadow.cginc(120) (on d3d11)
Compiling Vertex program with SHADOWS_CUBE _WAVES_FFT _WATER_OVERLAYS 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_RGBM_ENCODING
Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Issue persists after recalculating the shader sets.
someone posted the solution on the forum since here they don't seem to be able to help much. I hope it helps:
It can be fixed with replacing the line 52 of "Assets/Ultimate Water System/Shaders/Includes/UnityStandardShadow.cginc" with: Code (CSharp):
V2F_SHADOW_CASTER_NOPOS
And change the line 120 of "Assets/Ultimate Water System/Shaders/Includes/UnityStandardShadow.cginc" with: Code (CSharp): // #ifdef SHADOWS_CUBE
I mentioned this in forum thread, I've added the solution to the previous hotfix.
You either get an error like this:
Or you get an error like this:
Either way, with the first error, water may display in the Unity Editor game window, but with both errors, you can't get any water to display at all in a build.