RetroArch
ffmpeg_es.glsl.frag.h
Go to the documentation of this file.
1 #include "shaders_common.h"
2 
3 static const char *fragment_source = GLSL(
4  varying vec2 vTex;
5  uniform sampler2D sTex0;
6  uniform sampler2D sTex1;
7  uniform float uMix;
8 
9  void main() {
10  gl_FragColor = vec4(pow(mix(pow(texture2D(sTex0, vTex).bgr, vec3(2.2)), pow(texture2D(sTex1, vTex).bgr, vec3(2.2)), uMix), vec3(1.0 / 2.2)), 1.0);
11  }
12 );
13 
sampler2DBase< glm::vec4 > sampler2D
Definition: sampler.hpp:94
static const char * fragment_source
Definition: ffmpeg_es.glsl.frag.h:3
#define GLSL(src)
Definition: shaders_common.h:10
int main(int argc, char *argv[])
Definition: send-presence.c:197
#define pow(x, y)
Definition: math.h:22