cc3dsfs/shaders/frame_blending_fragment_shader.frag
2024-12-03 06:38:33 +01:00

9 lines
265 B
GLSL

uniform sampler2D Texture0;
uniform vec2 old_frame_offset;
void main() {
gl_FragColor = texture2D(Texture0, gl_TexCoord[0].xy);
vec4 OldFragColor = texture2D(Texture0, gl_TexCoord[0].xy + old_frame_offset);
gl_FragColor = (gl_FragColor + OldFragColor) / 2.0;
}