Show outline only if object is lit

I’m trying to make a shader that outlines objects if they are lit up enough.
How can I get outlines that appear only within my lights?

With a directional light, I get outlines on my whole scene however with a point light, I never get any outlines.
It’s as if point lights are not considered in the light color/light attenuation nodes but the documentation says otherwise.
http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Light_Attenuation
http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Light_Color

I’m using Amplify:

You should post in the Amplify thread itself, not here. However you need to handle attenuation in the vertex shader differently than the fragment shader / custom lighting function. I suspect that node doesn’t handle being used in the vertex shader properly, and this is a bug for Amplify to fix. It’s totally possible to do with hand written shaders.

1 Like