forked from enlightenment/efl
test - unify glsl formatting to match glview gears example
This commit is contained in:
parent
e045d28cfc
commit
f1b88b0f68
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue