RetroArch
cores
libretro-ffmpeg
gl_shaders
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
spirv_cross::sampler2D
sampler2DBase< glm::vec4 > sampler2D
Definition:
sampler.hpp:94
shaders_common.h
fragment_source
static const char * fragment_source
Definition:
ffmpeg_es.glsl.frag.h:3
GLSL
#define GLSL(src)
Definition:
shaders_common.h:10
main
int main(int argc, char *argv[])
Definition:
send-presence.c:197
pow
#define pow(x, y)
Definition:
math.h:22
Generated by
1.8.15