Adding point light support to shader?

Hey, currently got this toon shader, but it only uses the directional light right now, which isnt great. I’d like to add point light support too. How could I do this?

You can use #if defined(POINT), #if defined(SPOT) and #if defined(DIRECTIONAL) to check the type of the current light.

For point lights, you then get the light direction by doing something like lightDir = normalize(_WorldSpaceLightPos0.xyz - worldPos);

Lastly, the UNITY_LIGHT_ATTENUATION macro can be used to calculate the point light’s distance attenuation.

Beyond that it’s the same as directional lights I think?