Welcome to mirror list, hosted at ThFree Co, Russian Federation.

effect_temporal_aa.glsl « shaders « eevee « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f3df1864317fd6fb6dfad8a74235f6e9612a1912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

uniform sampler2D colorBuffer;
uniform sampler2D historyBuffer;
uniform float alpha;

out vec4 FragColor;

void main()
{
	/* TODO History buffer Reprojection */
	vec4 history = texelFetch(historyBuffer, ivec2(gl_FragCoord.xy), 0).rgba;
	vec4 color = texelFetch(colorBuffer, ivec2(gl_FragCoord.xy), 0).rgba;
	FragColor = mix(history, color, alpha);
}