How do you access light information in a 2D sprite shader?
I'm trying to create a 2D sprite shader that takes lighting into account. I'm using Light 2D objects from URP for lighting.
I started by creating a "Sprite Lit Shader Graph", but I'm open to writing the shader in HLSL or ShaderLab instead. My problem is that I don't know how to get data about the lighting. I'm looking for something like GetMainLight(), but that only seems to work for 3D. I don't see any functions documented.
I've searched around on the forums and online, I've found examples here and there but nothing that both shows Sprite Shaders and 2D light.
Would appreciate any help or links to other stuff I might have missed!
Comment