2015-02-28 09:32:07 +13:00

19 lines
255 B
Lua

return shader_new{name="simple", vert=[=[
// Vertex shader
void main()
{
gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;
gl_FrontColor = gl_Color;
}
]=], frag=[=[
// Fragment shader
void main()
{
gl_FragColor = gl_Color;
}
]=]}