util-basic-vertex-shader
Contains a simple vertex shader that takes a vertex with a single float2
value in the range [0..1]
(where (0, 0)
is the upper-left coordinate of the quad)
and outputs a position value with x, y
in range [-1..1]
, a z
value of 0
, and a w
value of 1
, as well as a texture coordinate value in the range [0..1]
.
The way this shader is specified is platform-specific, and so the best reference is to actually refer to the shader itself.
This can be used as the vertex shader for every Cathode Retro pixel/fragment shader.