Why are my custom meshes black?

Hi !
I’ve recently been playing with the custom mesh creation because the extruce geometry wasn’t what I wanted… But my meshes are now comming full black with apparently no material…
Thanks :slight_smile:

Before return geometry;, try to add this line: geometry.computeFaceNormals();


Oh it’s working ! Thanks a lot :slight_smile:
But why should I do that ? Do you know ?

To get correct shading, you need normals :slight_smile:

1 Like

Very similar to my first question on SO :smiley: