test - unify glsl formatting to match glview gears example

This commit is contained in:
Carsten Haitzler 2013-11-17 10:04:26 +09:00
parent e045d28cfc
commit f1b88b0f68
1 changed files with 11 additions and 11 deletions

View File

@ -63,20 +63,20 @@ init_shaders(GLData *gld)
{ {
Evas_GL_API *gl = gld->glapi; Evas_GL_API *gl = gld->glapi;
GLbyte vShaderStr[] = GLbyte vShaderStr[] =
"attribute vec4 vPosition; \n" "attribute vec4 vPosition;\n"
"void main() \n" "void main()\n"
"{ \n" "{\n"
" gl_Position = vPosition; \n" " gl_Position = vPosition;\n"
"} \n"; "}\n";
GLbyte fShaderStr[] = GLbyte fShaderStr[] =
"#ifdef GL_ES \n" "#ifdef GL_ES\n"
"precision mediump float; \n" "precision mediump float;\n"
"#endif \n" "#endif\n"
"void main() \n" "void main()\n"
"{ \n" "{\n"
" gl_FragColor = vec4 ( 1.0, 0.0, 0.0, 1.0 );\n" " gl_FragColor = vec4 ( 1.0, 0.0, 0.0, 1.0 );\n"
"} \n"; "}\n";
GLint linked; GLint linked;