Eevee: Fix motion blur.

This commit is contained in:
Clément Foucault 2017-05-11 14:16:59 +02:00
parent 0e0888970d
commit 4e7eafb86f
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ void main()
float inc = 2.0 * inv_samples;
float i = -1.0 + noise;
FragColor = vec4(0.0);
for (int j = 0; j < samples && j < MAX_SAMPLE; j++) {
FragColor += texture(colorBuffer, uvcoordsvar.xy + motion * i) * inv_samples;
i += inc;