RetroArch
modern_alpha_blend.glsl.frag.h
Go to the documentation of this file.
1 #include "shaders_common.h"
2 
3 static const char *stock_fragment_modern_blend = GLSL(
4  uniform sampler2D Texture;
5  uniform vec4 bgcolor;
6  varying vec2 tex_coord;
7  varying vec4 color;
8  void main() {
9  if (bgcolor.a > 0.0)
10  gl_FragColor = bgcolor;
11  else
12  gl_FragColor = color * texture2D(Texture, tex_coord);
13  }
14 );
sampler2DBase< glm::vec4 > sampler2D
Definition: sampler.hpp:94
#define GLSL(src)
Definition: shaders_common.h:10
static const char * stock_fragment_modern_blend
Definition: modern_alpha_blend.glsl.frag.h:3
int main(int argc, char *argv[])
Definition: send-presence.c:197
GLuint color
Definition: glext.h:6883
Definition: Context.h:13