Functionsยง
- calc_
all_ pixels_ within_ triangle - Returns all tuples (w0, w1, w2, p) consisting of the baryentric coordiantes (w0, w1, w2) of a pixel (p), for all pixels inside the given triangle.
- calc_
inv_ z_ for_ all_ pixels - Calcualte the inv depth for all pixels inside a triangle using perspective correct interpolation
- pixel_
within_ triangle_ and_ barycentric - Assume the triangle vertices a,b are in counter-clockwise winding order -> Fix this. GLTF can be any winding order