Normals orientation on basic custom mesh


I’m struggling with something simple, I’ve edited the playground of the doc about custom meshes to reverse the normal orientation, but I don’t understand why material isn’t displayed as I would expect

Playground link:

I reversed all the normals

I would expect:

  • face (0, 1, 2 ) to be invisible when looking in the Z+ direction
  • face (3, 4, 5) to be white when looking in the Z+ direction

But I get the opposite.

Do I misunderstand backface and normals behaviour ? If we reverse the normal shouldn’t “back face” become “front face” ?

Thanks for any pointer on this

Hi, the front/backface are determined by the winding order of the vertices, so if you reverse the indices you get the desired result:

1 Like

Ok !!! Got it :sunglasses: