Eevee: Fix motion blur.
This commit is contained in:
parent
0e0888970d
commit
4e7eafb86f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue