Commit: 0ea187eb0dd359f83370d6fb1b12f22586ef0519 Author: Antonio Vazquez Date: Thu Jun 28 13:13:26 2018 +0200 Branches: temp-greasepencil-vfx https://developer.blender.org/rB0ea187eb0dd359f83370d6fb1b12f22586ef0519
Cleanup: Fix comments =================================================================== M source/blender/draw/engines/gpencil/gpencil_shader_fx.c =================================================================== diff --git a/source/blender/draw/engines/gpencil/gpencil_shader_fx.c b/source/blender/draw/engines/gpencil/gpencil_shader_fx.c index f01d37af42c..0e18bc1eae7 100644 --- a/source/blender/draw/engines/gpencil/gpencil_shader_fx.c +++ b/source/blender/draw/engines/gpencil/gpencil_shader_fx.c @@ -536,7 +536,7 @@ static void gpencil_draw_fx_pass(GPENCIL_e_data *e_data, GPU_framebuffer_clear_color_depth(fbl->temp_fb_b, clearcol, 1.0f); /* draw effect pass in temp texture (B) using as source the previous image - * existing the the other temp texture (A) */ + * existing in the other temp texture (A) */ DRW_draw_pass_subset(fxpass, shgrp, shgrp); /* copy pass from b to a for ping-pong frame buffers */ @@ -563,6 +563,13 @@ static void gpencil_blur_passes(struct GPENCIL_e_data *e_data, float bx = stl->fx[ob_idx].fx_blur.radius[0]; float by = stl->fx[ob_idx].fx_blur.radius[1]; + /* the blur is done in two steps (Hor/Ver) because is faster and + * gets better result + * + * samples could be 0 and disable de blur effects because sometimes + * is easier animate the number of samples only, instead to animate the + * hide/unhide and the number of samples to make some effects. + */ for (int b = 0; b < samples; b++) { /* horizontal */ if (bx > 0) { _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs