forked from enlightenment/efl
oh and compile script missing updates to make shd's... grrr. and nv12
shader bad! SVN revision: 63832
This commit is contained in:
parent
69a70ef632
commit
27431cacdd
|
@ -3,8 +3,15 @@ function compile()
|
|||
{
|
||||
F=$1
|
||||
|
||||
make-c-str.sh $F"_frag.shd" > $F"_frag.h"
|
||||
make-c-str.sh $F"_vert.shd" > $F"_vert.h"
|
||||
if [ -f $F".shd" ]; then
|
||||
make-c-str.sh $F".shd" > $F".h"
|
||||
fi
|
||||
if [ -f $F"_frag.shd" ]; then
|
||||
make-c-str.sh $F"_frag.shd" > $F"_frag.h"
|
||||
fi
|
||||
if [ -f $F"_vert.shd" ]; then
|
||||
make-c-str.sh $F"_vert.shd" > $F"_vert.h"
|
||||
fi
|
||||
}
|
||||
|
||||
compile rect
|
||||
|
@ -18,4 +25,24 @@ compile yuv
|
|||
compile yuv_nomul
|
||||
compile tex
|
||||
compile tex_nomul
|
||||
compile filter_blur_bgra
|
||||
compile filter_blur_bgra_nomul
|
||||
compile filter_blur
|
||||
compile filter_blur_nomul
|
||||
compile filter_greyscale_bgra
|
||||
compile filter_greyscale_bgra_nomul
|
||||
compile filter_greyscale
|
||||
compile filter_greyscale_nomul
|
||||
compile filter_invert_bgra
|
||||
compile filter_invert_bgra_nomul
|
||||
compile filter_invert
|
||||
compile filter_invert_nomul
|
||||
compile filter_sepia_bgra
|
||||
compile filter_sepia_bgra_nomul
|
||||
compile filter_sepia
|
||||
compile filter_sepia_nomul
|
||||
compile nv12
|
||||
compile nv12_nomul
|
||||
compile yuy2
|
||||
compile yuy2_nomul
|
||||
## FIXME: compile filter_*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"uniform sampler1D gaussian;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"uniform sampler1D gaussian;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"uniform sampler1D gaussian;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"uniform sampler1D gaussian;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"attribute vec4 vertex;\n"
|
||||
"attribute vec4 color;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec2 tex_c;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec2 tex_c;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex, texuv;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex, texuv;\n"
|
||||
"varying vec2 tex_c, tex_cuv;\n"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"attribute vec4 vertex;\n"
|
||||
"attribute vec4 color;\n"
|
||||
"attribute vec2 tex_coord, tex_coord2;\n"
|
||||
"uniform mat4 mvp;\n"
|
||||
"varying vec2 tex_c, tex_cuv;\n"
|
||||
"varying vec2 tex_y, tex_cuv;\n"
|
||||
"void main()\n"
|
||||
"{\n"
|
||||
" gl_Position = mvp * vertex;\n"
|
||||
" tex_c = tex_coord;\n"
|
||||
" tex_cuv = tex_coord2 * 0.5;\n"
|
||||
" tex_y = tex_coord;\n"
|
||||
" tex_cuv = tex_coord2;\n"
|
||||
"}\n"
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"attribute vec4 vertex;\n"
|
||||
"attribute vec4 color;\n"
|
||||
"attribute vec2 tex_coord, tex_coord2;\n"
|
||||
"uniform mat4 mvp;\n"
|
||||
"varying vec4 col;\n"
|
||||
"varying vec2 tex_c, tex_cuv;\n"
|
||||
"varying vec2 tex_y, tex_cuv;\n"
|
||||
"void main()\n"
|
||||
"{\n"
|
||||
" gl_Position = mvp * vertex;\n"
|
||||
" col = color;\n"
|
||||
" tex_c = tex_coord;\n"
|
||||
" tex_cuv = tex_coord2 * 0.5;\n"
|
||||
" tex_y = tex_coord;\n"
|
||||
" tex_cuv = tex_coord2;\n"
|
||||
"}\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex, texuv;\n"
|
||||
"varying vec4 col;\n"
|
||||
|
@ -10,17 +10,17 @@
|
|||
" y=texture2D(tex,tex_c).r;\n"
|
||||
" u=texture2D(texuv,tex_cuv).g;\n"
|
||||
" v=texture2D(texuv,tex_cuv).a;\n"
|
||||
|
||||
"\n"
|
||||
" u=u-0.5;\n"
|
||||
" v=v-0.5;\n"
|
||||
" vmu=v*0.813+u*0.391;\n"
|
||||
" u=u*2.018;\n"
|
||||
" v=v*1.596;\n"
|
||||
|
||||
"\n"
|
||||
" r=y+v;\n"
|
||||
" g=y-vmu;\n"
|
||||
" b=y+u;\n"
|
||||
|
||||
"\n"
|
||||
" gl_FragColor=vec4(r,g,b,1.0) * col;\n"
|
||||
"}\n"
|
||||
|
||||
"\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D tex, texuv;\n"
|
||||
"varying vec2 tex_c, tex_cuv;\n"
|
||||
|
@ -9,18 +9,18 @@
|
|||
" y=texture2D(tex,tex_c).r;\n"
|
||||
" u=texture2D(texuv,tex_cuv).g;\n"
|
||||
" v=texture2D(texuv,tex_cuv).a;\n"
|
||||
|
||||
"\n"
|
||||
" u=u-0.5;\n"
|
||||
" v=v-0.5;\n"
|
||||
" vmu=v*0.813+u*0.391;\n"
|
||||
" u=u*2.018;\n"
|
||||
" v=v*1.596;\n"
|
||||
" y=(y-0.062)*1.164;\n"
|
||||
|
||||
"\n"
|
||||
" r=y+v;\n"
|
||||
" g=y-vmu;\n"
|
||||
" b=y+u;\n"
|
||||
|
||||
"\n"
|
||||
" gl_FragColor=vec4(r,g,b,1.0);\n"
|
||||
"}\n"
|
||||
|
||||
"\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"attribute vec4 vertex;\n"
|
||||
"attribute vec2 tex_coord, tex_coord2;\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"attribute vec4 vertex;\n"
|
||||
"attribute vec4 color;\n"
|
||||
|
|
Loading…
Reference in New Issue