[Bf-blender-cvs] [4e7eafb86fd] blender2.8: Eevee: Fix motion blur.

Clément Foucault noreply at git.blender.org
Thu May 11 14:07:42 CEST 2017


Commit: 4e7eafb86fd321b9684c782b32457d67e3d049bd
Author: Clément Foucault
Date:   Thu May 11 14:16:59 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB4e7eafb86fd321b9684c782b32457d67e3d049bd

Eevee: Fix motion blur.

===================================================================

M	source/blender/draw/engines/eevee/shaders/effect_motion_blur_frag.glsl

===================================================================

diff --git a/source/blender/draw/engines/eevee/shaders/effect_motion_blur_frag.glsl b/source/blender/draw/engines/eevee/shaders/effect_motion_blur_frag.glsl
index 8960b339a61..1505e02bfb7 100644
--- a/source/blender/draw/engines/eevee/shaders/effect_motion_blur_frag.glsl
+++ b/source/blender/draw/engines/eevee/shaders/effect_motion_blur_frag.glsl
@@ -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;




More information about the Bf-blender-cvs mailing list