0 votes

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):

https://i.imgur.com/PyYXFa2.mp4

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...):

https://i.imgur.com/e8o1W3I.mp4

Any ideas how to prevent this?
Thanks.

Godot version 3.2.4.rc4
in Engine by (37 points)

1 Answer

+1 vote

Answer my own question:

Disable anti-alias on the polygons!

by (37 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.