Implement Blur mode and embed shaders

This commit is contained in:
Simon Robertshaw
2011-10-20 16:28:49 +01:00
parent 2b56d31610
commit 09d3cacf9c
3 changed files with 73 additions and 12 deletions

View File

@@ -191,3 +191,16 @@ void ogl_blit(int x, int y, int w, int h, pixel *src, int pitch, int scale);
#endif
#endif
#ifdef INCLUDE_SHADERS
const char * fragment = "uniform sampler2D fireAlpha;\
void main () {\
vec4 texColor = texture2D(fireAlpha, gl_PointCoord);\
gl_FragColor = vec4(gl_Color.rgb, texColor.a*gl_Color.a);\
}";
const char * vertex = "void main(void)\
{\
gl_Position = ftransform();;\
gl_FrontColor = gl_Color;\
}";
#endif