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…
https://jsfiddle.net/ajzu4khn/7/
Thanks :slight_smile:

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

3 Likes

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: