[Bf-blender-cvs] [94daab8ba06] greasepencil-object: Fix tone mapping error in vfx

Antonio Vazquez noreply at git.blender.org
Sun Feb 18 12:26:01 CET 2018


Commit: 94daab8ba06286290c9ef0734b719aab6229d58d
Author: Antonio Vazquez
Date:   Sun Feb 18 12:23:47 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB94daab8ba06286290c9ef0734b719aab6229d58d

Fix tone mapping error in vfx

The tone mapping parameter for shader was missing.

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

M	source/blender/draw/engines/gpencil/gpencil_vfx.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_vfx.c b/source/blender/draw/engines/gpencil/gpencil_vfx.c
index 6ed7b8e290e..e459da8cada 100644
--- a/source/blender/draw/engines/gpencil/gpencil_vfx.c
+++ b/source/blender/draw/engines/gpencil/gpencil_vfx.c
@@ -104,6 +104,7 @@ static void DRW_gpencil_vfx_copy(
 	DRW_shgroup_call_add(vfx_shgrp, vfxquad, NULL);
 	DRW_shgroup_uniform_buffer(vfx_shgrp, "strokeColor", &e_data->temp_color_tx);
 	DRW_shgroup_uniform_buffer(vfx_shgrp, "strokeDepth", &e_data->temp_depth_tx);
+	DRW_shgroup_uniform_int(vfx_shgrp, "tonemapping", &stl->storage->tonemapping, 1);
 
 	cache->vfx_wave_sh = vfx_shgrp;
 }



More information about the Bf-blender-cvs mailing list