[Bf-blender-cvs] [49d51a1e624] blender2.8: Eevee: Fix motion blur alpha being > 1.0

Clément Foucault noreply at git.blender.org
Fri Jan 12 15:58:33 CET 2018


Commit: 49d51a1e6246f00233abf54a8b24b5d829848e44
Author: Clément Foucault
Date:   Fri Jan 12 15:57:21 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB49d51a1e6246f00233abf54a8b24b5d829848e44

Eevee: Fix motion blur alpha being > 1.0

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

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 1a01db3a1a3..73e284570cd 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
@@ -57,7 +57,7 @@ void main()
 	float inc = 2.0 * inv_samples;
 	float i = -1.0 + noise;
 
-	FragColor = vec4(0.0, 0.0, 0.0, 1.0);
+	FragColor = vec4(0.0);
 	for (int j = 0; j < samples && j < MAX_SAMPLE; j++) {
 		FragColor += textureLod(colorBuffer, uvcoordsvar.xy + motion * i, 0.0) * inv_samples;
 		i += inc;



More information about the Bf-blender-cvs mailing list