[orx-mesh] Update the IndexedPolygon.point function to use IVertexData instead of VertexData.

This commit is contained in:
Edwin Jakobs
2025-01-25 10:11:15 +01:00
parent 302c11982f
commit 6a6855ba32

View File

@@ -19,7 +19,7 @@ internal fun <T : LinearType<T>> bc(barycentric: Vector3, items: List<T>): T {
* @param barycentric The barycentric coordinates used to interpolate the vertex attributes.
* @return A `Point` containing interpolated vertex attributes including position, texture coordinates, color, normal, tangent, and bitangent.
*/
fun IIndexedPolygon.point(vertexData: VertexData, barycentric: Vector3): Point {
fun IIndexedPolygon.point(vertexData: IVertexData, barycentric: Vector3): Point {
require(positions.size == 3)
val positions = vertexData.positions.slice(positions)