/* * Awesome triangle shader */ technique FlatColor { pass DefaultPass { vertexshader = vert; pixelshader = frag; } } [vert.glsl] #version 130 in vec2 in_position; void main(void) { gl_Position = vec4(in_position, 0.0, 1.0); } [frag.glsl] #version 130 #if defined GL_ES precision highp float; #endif void main(void) { gl_FragColor = vec4(0.7, 0.2, 0.5, 1.0); }