mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-21 13:42:20 +02:00
17 lines
377 B
GLSL
17 lines
377 B
GLSL
/* Fragment shader that produces a simple
|
|
* fade in / fade out type transition */
|
|
|
|
uniform sampler2D frozenScene;
|
|
uniform sampler2D currentScene;
|
|
uniform float prog;
|
|
|
|
in vec2 v_texCoord;
|
|
|
|
out vec4 fragColor;
|
|
|
|
void main() {
|
|
vec4 newPixel = texture(currentScene, v_texCoord);
|
|
vec4 oldPixel = texture(frozenScene, v_texCoord);
|
|
|
|
fragColor = mix(oldPixel, newPixel, prog);
|
|
}
|