Apply Texture to Polygon

I want to apply a texture to a 3D Polygon, but Babylon does not apply the texture correct(?) to my polygon.

Can anyone help?


Shape for the polygon is always in XZ plane any given y values are set to 0.

From docs Irregular Polygons | Babylon.js Documentation

All vectors for shape and holes are Vector3 and should be in the xz plane, ie of the form BABYLON.Vector3(x, 0, z) and in counter clockwise order. You just list all the vertices of the polygon and CreatePolygon closes the shape.


Hey John! Thank you very much!