SampleFunction

typealias SampleFunction<T> = (polygon: IIndexedPolygon, vertexData: IVertexData, barycentric: Barycentric) -> T(source)

Represents a type alias for a function that processes data associated with a polygon and vertex data, producing a result of type T.

This function takes the following parameters:

  • polygon: An instance of IIndexedPolygon representing the polygon in 3D space.

  • vertexData: An instance of IVertexData containing the associated vertex attributes, such as positions, texture coordinates, normals, etc.

  • barycentric: A Barycentric representation defining the barycentric coordinates for interpolation.