Contents

vertexCreases

A buffer containing sharpness values to be applied to points during surface subdivision.

Declaration

var vertexCreases: (any MDLMeshBuffer)? { get set }

Discussion

Each entry in this buffer corresponds to an entry in the vertexCreaseIndices buffer that identifies a crease. The value of each entry determines the amount of smoothing to apply to the crease during surface subdivision—a value of zero completely smooths out the point, and a value of one leaves the point completely sharp.

Because the number of entries in this buffer is likely to be different than the number of entries in any other vertex buffer, it shouldn’t be interleaved with other data in the mesh.

See Also

Identifying Creases