Hello, how to disable back-face-culling when using only vertex color without material?

Hello, how to disable back-face-culling when using only vertex color without material?

  • Adding indices to add a backface with counter-clockwise existing positions cause face to go black on both sides normal and negative, regardless of whether additional colors are defined for the backface.

  • The only way I got vertex color backface to work is by adding data for positions, indices and colors as if the backface was an entirely separate triangle: it seems that if positions, indices and colors allocated are the same for the backface then it would make sense to be able to disable backfaceculling on mesh that do not have materials.

If there is a way I am interested?

Playground ref: https://playground.babylonjs.com/#VKBJN#1284

Something like this?

https://playground.babylonjs.com/#VKBJN#1285

3 Likes