Incorrect rendering of shader for edge glow.

Hi all,

I am trying to create shader which will create effect of glowing edges. So I created following shader:

However, when applied to object it renders completely incorrectly.

Any hints where the issue can be?

Thanks a lot!

fresnel doesn’t exactly make edges glow - it makes pixels brighter when viewed at a glancing angle The smooth edge glow as seen in the sphere in the preview depends on the surface being smooth at the edges of the silhouette. So, fresnel doesn’t work for lowpoly surfaces or flat surfaces.