White outlines when performing 2d lighting

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tripod

I have a very simple shader that just sets the normal to:

NORMAL = normalize(vec3(-1, 0, 1)); 

when I enable lighting, it has white artefacts at the edges (1 pixel, no matter how far I zoom in):


when I set the render mode to unshaded, the lines don’t show up.
Any ideas how to prevent the white lines ?

this also happens when I run the scene (and enable more normals etc…):


Any ideas how to prevent this?

:bust_in_silhouette: Reply From: tripod

Answer my own question:

Disable anti-alias on the polygons!