- Home /
Question by
davidsohn52 · Mar 13, 2020 at 07:49 AM ·
lightingshaderssprites
How to get 2d lighting data in shadergraph?
I've been trying to make a toon shader for my sprites in a 2D game using the lwrp. However, it doesn't look like there's any resources on how to do this yet. If I try to copy some of the existing toon shaders for 3D objects, it just darkens the sprite a bit. I think the main problem here is that I'm not getting the lighting data correctly, but I can't really tell for sure.
Comment
I am trying to develop a shader that will draw sprite differently depending on the 2D light intensity and wasn't able to find a solution. I'm also looking forward for an answer.to your question.