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