Shader error in Polyline2D unrecognized identifier 'centric' and 'interpolation' at Core.cginc

Avatar
  • updated

Image 761

  1. Shader error in 'Shapes/Polyline 2D Transparent': unrecognized identifier 'centric' at Core.cginc(190) (on d3d11)

    Compiling Subshader: 0, Pass: Pass, Vertex program with INSTANCING_ON JOIN_ROUND
    Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PASS_SRPDEFAULTUNLIT UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
    Disabled keywords: FOG_EXP FOG_EXP2 FOG_LINEAR IS_JOIN_MESH JOIN_BEVEL JOIN_MITER SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER 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

Text of the error above. It is only happening with those specific assets and causes them to not render in scene. All other Shapes assets render correctly. Polylines used to render correctly much earlier in the project's lifecycle but broke somehow somewhere sometime. To my knowledge no one has edited those cginc files, could something somewhere be declared by the same name breaking it? I have not enough shader knowledge to ascertain why this is occurring. 

I am currently in the midst of reimporting all assets as I saw it as a suggestion in another thread, I will update here if doing this fixes the error.
UPDATE: Reimporting all did not fix the error.

Reporting a bug? please specify Unity version:
2022.3.5f1
Reporting a bug? please specify Shapes version:
4.2.1
Reporting a bug? please specify Render Pipeline:
URP
Avatar
Freya Holmér creator

it sounds like this comment would've been partially uncommented somehow? maybe some conflicting macros doing some shenanigans?

Image 852