boat-attack-water icon indicating copy to clipboard operation
boat-attack-water copied to clipboard

Water Shader Error in Unity 6 urp

Open sjkim1984 opened this issue 1 year ago • 3 comments

Unity 6000.0.31f1

Shader error in 'BoatAttack/Water': 'DirectBDRF': no matching 4 parameter function at /Users/xenthus/Documents/BoatAttack/Packages/com.verasl.water-system/Shaders/WaterCommon.hlsl(246) (on metal)

Compiling Subshader: 0, Pass: WaterShading, Vertex program with FOG_EXP2 _DEBUG_OFF _MAIN_LIGHT_SHADOWS_CASCADE _REFLECTION_PLANARREFLECTION _SHADOWS_SOFT Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_RGBM_ENCODING UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_NEEDS_RENDERPASS_FBFETCH_FALLBACK UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS Disabled keywords: FOG_EXP FOG_LINEAR INSTANCING_ON SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_FULL_HDR UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING USE_STRUCTURED_BUFFER _ADDITIONAL_LIGHTS _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHT_SHADOWS _DEBUG_FOAM _DEBUG_FRESNEL _DEBUG_NORMAL _DEBUG_REFLECTION _DEBUG_REFRACTION _DEBUG_SSS _DEBUG_WATERDEPTH _DEBUG_WATEREFFECTS _MAIN_LIGHT_SHADOWS _REFLECTION_CUBEMAP _REFLECTION_PROBES _STATIC_SHADER

I think this project is not compatible with Unity 6.

sjkim1984 avatar Dec 17 '24 05:12 sjkim1984

The Boat Attack project you opened is using a very old version of this repository, since it's using the old package name com.verasl.water-system

Try the rendergraph-U6 branch, which has been updated to support RenderGraph and should work better with Unity 6: https://github.com/Unity-Technologies/BoatAttack/tree/rendergraph-U6

Torgo13 avatar Dec 20 '24 17:12 Torgo13

The package is not compatible with Unity 6.3 LTS. There are too many compiler errors to list here.

jamesarndt82 avatar Dec 05 '25 15:12 jamesarndt82

@jamesarndt82 The BoatAttack repository has a branch containing a package that is compatible with Unity 6.3 LTS. https://github.com/Unity-Technologies/BoatAttack/tree/release/6000.3/Packages/com.verasl.water-system

It's based on the older 1.4.0-preview.1 version, so it's missing effects such as screen-space reflections.

Since the rendergraph-U6 branch of boat-attack-water still has issues in 6.3, such as gaps in the water mesh, I think the best approach is to modify the 2.0.0-preview.1 or 2.0.0-preview.2 versions of this repository to include the Rendergraph compatibility changes of the release/6000.3 branch of BoatAttack.

Torgo13 avatar Dec 06 '25 08:12 Torgo13