SurfaceTool.generateNormals

Generates normals from Vertices so you do not have to do it manually. Setting "flip" true inverts resulting normals. Requires primitive type to be set to PRIMITIVE_TRIANGLES.

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

Meta