writeTri

fun writeTri(v0: Vector3, v1: Vector3, v2: Vector3, tc0: Vector2, tc1: Vector2, tc2: Vector2, faceNormal: Vector3, writer: VertexWriter)(source)

Writes a triangle to writer.

Parameters

v0

vertex 0

v1

vertex 1

v2

vertex 2

tc0

texture coordinate 0

tc1

texture coordinate 1

tc2

texture coordinate 2

faceNormal

the face normal

writer

the vertex writer function