zacharypetersen1 / FlexibleCelShader-SRP

Unity package providing cel shader compatible with Scriptable Render Pipelines
MIT License
38 stars 6 forks source link

Multiple Urp Errors #1

Open Glitched-Fox-Studios opened 2 years ago

Glitched-Fox-Studios commented 2 years ago
- Couldn't open include file 'Assets/FlexibleCelShader/Shaders/Hdrp/Shaders/Hdrp_FcsCelLighting.hlsl'.
- Shader error in 'Shader Graphs/Urp_FlexibleCelShader': unrecognized identifier 'DirectionalLightData' at Assets/FlexibleCelShader/Shaders/Hdrp/Shaders/Hdrp_FcsCelLighting.hlsl(32)
- Shader error in 'Shader Graphs/Urp_FlexibleCelShader': unrecognized identifier 'light' at Assets/FlexibleCelShader/Shaders/Hdrp/Shaders/Hdrp_FcsCelLighting.hlsl(32)

Not sure why a urp shader is requesting hdrp shaders but it is preventing the shader from compiling.

fr4nk014 commented 2 years ago

Fix for the compiling errors on urp. In Urp_FlexibleCelShader the Custom Function "FcsCelLighting" has the 'source' set to "HdrpFcsCelLighting" instead of the "Urp"-one. Changing this fixed all compiling errors. cel1 cel2