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

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

out vec4 colorOutput;

uniform float mixFactor;

void main()
{
	ivec2 texel = ivec2(gl_FragCoord.xy);
	vec4 color_buffer = texelFetch(colorBuffer, texel, 0);
	vec4 history_buffer = texelFetch(historyBuffer, texel, 0);
	colorOutput = mix(history_buffer, color_buffer, mixFactor);
}