Bindings
Structures
Functions
finds the local-space vertex position for a given vertex index by reading from the vertex buffer using the provided parameters. the vertex buffer is interpreted as an array of u32s, so the parameters allow us to calculate the correct offset for the position attribute of the vertex at the given index.
@vertex
Processes each 3D point in a model before it's drawn
@fragment
Calculates the final color of each pixel on the screen
unsigned perpendicular distance from point p to the infinite line through a and b.