diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-02-22 20:51:20 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-02-23 21:10:02 +0300 |
commit | af061b4dac140c5acea21f69257bfc5c18b3fe1c (patch) | |
tree | b37010940b6f984f866367621912296111c7424b /source/blender/draw/engines/eevee/eevee_volumes.c | |
parent | a44b08a6c473c0aae9f98dc13f9d000e5ea639bc (diff) |
Eeevee: add temperature grid support, make color grid unpremultiplied.
This matches similar changes done for Cycles.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_volumes.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_volumes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_volumes.c b/source/blender/draw/engines/eevee/eevee_volumes.c index 2c5b9072837..0a1b0f7a52b 100644 --- a/source/blender/draw/engines/eevee/eevee_volumes.c +++ b/source/blender/draw/engines/eevee/eevee_volumes.c @@ -506,6 +506,9 @@ void EEVEE_volumes_cache_object_add(EEVEE_ViewLayerData *sldata, EEVEE_Data *ved if (sds->tex_flame != NULL) { DRW_shgroup_uniform_buffer(grp, "sampflame", &sds->tex_flame); } + + /* Output is such that 0..1 maps to 0..1000K */ + DRW_shgroup_uniform_vec2(grp, "unftemperature", &sds->flame_ignition, 1); } } |