#ifdef DESC [program] type: graphics vertex: main fragment: main [attribute] name: position type: vec2 [target] name: colour type: vec4 #endif #ifdef VERTEX_SHADER void main() { gl_Position = vec4(position, 0.0, 1.0); } #endif #ifdef FRAGMENT_SHADER void main() { colour = 1.0.xxxx; } #endif