Why does the bottom face turn black when subtracting cubes using CSG2?

I experimented with hollowing out a cube using both CSG and CSG2.
In both cases, I applied an orange material to the mesh after hollowing out the cube.
I was hoping that both would produce the same results, but for some reason, the bottom surface of CSG2 seems to turn out black. Is this expected?
How can I make the bottom surface orange like in CSG?

CSG example)

CSG2 example)

CSG2 has the tendency to wipe / invert normals

You can restore them with mesh.createNormals()

CSG2 test | Babylon.js Playground

2 Likes

Great. You’ve achieved what you wanted!
It might be a good idea to add some additional information in the documentation.

1 Like

Excellent!!!

1 Like