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: 5795268f794754103f9036f0a0ebd7f7770a145c (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);
}