• Unity
  • 2D Cartoon lighting

  • Đã chỉnh sửa
Related Discussions
...

Hi, I'm waiting for this guy to make a tutorial since 2 years:

This looks to good to be true and I'm new to SkeletonLit and Unity lighting so any leads you can throw at me to reach that flat cartoon lighting effect will be much appreciated :nerd:

Sorry to hear that you have been waiting for so long.

What Mitch used in the above video is a custom Diffuse Ramp texture at a Sprite shader material. It's not available at the normal Skeleton Lit shader, you have to use one of the Spine/Sprite shaders (or their Lightweight Render Pipeline variants).

What happens here is that diffuse light is not evaluated in normal continuous fashion from 0-1, but instead it looks at the ramp texture and uses the light intensity value that it finds there. Now if you paint three vertical bars in colors black, gray and white, it will result in such a cel-shaded lighting look with hard transitions between no light, half lit and fully lit.

Maybe this posting here helps:
Sprite Shaders for Unity

Oh no worry I was just kidding! I didn't know it was Mitch, it would be amazing if he would make another tutorial on this!

Many thanks for all the details, and the forum thread, I'm gonna dig into all this 🙂

You're welcome. 🙂