Relative Content

Tag Archive for unity-game-engineshaderlightingsubscript

invalid subscript ‘shadowAttenuation’ Unity Shader Graph for toon shader

I’m trying to make some kind of toon shader in unity responsive to additional lights and being able to receive shadows, so I tried merging some of the public proyects I found. I’m trying to fix every error I find, but I don’t know how to solve this specific error, because it mentions “shadowAttenuation” as if it doesn’t exist (or at least that’s what I thought).
The exact error is Shader error in 'Shader Graphs/Master': invalid subscript 'shadowAttenuation' at Assets/LightingCelShaded.hlsl(30) (on d3d11)