Constants
Bindings
Structures
Functions
@vertex
Processes each 3D point in a model before it's drawn
@vertex
Processes each 3D point in a model before it's drawn
@vertex
Processes each 3D point in a model before it's drawn
@fragment
Calculates the final color of each pixel on the screen
@fragment
Calculates the final color of each pixel on the screen
@fragment
Calculates the final color of each pixel on the screen
The top-left has UV 0,0, the bottom-left has 0,2, and the top-right has 2,0. This means that the UV gets interpolated to 1,1 at the bottom-right corner of the clip-space rectangle that is at 1,-1 in clip space.