SurfaceTool.generateNormals

Generates normals from vertices so you do not have to do it manually. If flip is true, the resulting normals will be inverted. generateNormals should be called after generating geometry and before committing the mesh using commit or commitToArrays. Note: generateNormals only works if the primitive type to be set to constant Mesh.PRIMITIVE_TRIANGLES.

struct SurfaceTool
@nogc nothrow
void
generateNormals
(
in bool flip = false
)

Meta