Constants
Bindings
Structures
struct
VertexOutput
{
}
Functions
@vertex
Processes each 3D point in a model before it's drawn
Arguments:
- point -> The function will return the distance from this point to the closest point on
the boundary.
- size -> The maximum width and height of the box.
- corner_radii_x -> The horizontal semi-axis of each rounded corner. Ordered counter clockwise starting top left.
- corner_radii_y -> The vertical semi-axis of each rounded corner. Ordered counter clockwise starting top left.
@fragment
Calculates the final color of each pixel on the screen
Arguments: -
point-> The point used to choose the closest corner. -corner_radii_x-> The horizontal radius of each rounded corner. -corner_radii_y-> The vertical radius of each rounded corner. Both ordered x: top left, y: top right, z: bottom right, w: bottom left.