edgeCreases
A buffer containing sharpness values to be applied to edges during surface subdivision.
Declaration
var edgeCreases: (any MDLMeshBuffer)? { get set }Discussion
Each entry in this buffer corresponds to a pair of entries in the edgeCreaseIndices 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 edge, and a value of one leaves the edge 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.