API Reference · Materials and textures
CullMode
public enum CullModeWhich side of a triangle is drawn.
A triangle has a front and a back, decided by the order its three corners are wound. Dropping the ones that face away is free geometry — roughly half of a closed solid is always facing away — but it is only safe when the winding is right, which is why the default here draws both.
Values
| Value | Description |
|---|---|
None | Both. The default, because exported geometry routinely has inconsistent winding. |
Back | Front faces only — the usual choice for closed solids. |
Front | Back faces only. What a sky sphere seen from inside needs. |