Workbench: Smoke: Port back Flame display
authorClément Foucault <foucault.clem@gmail.com>
Mon, 8 Oct 2018 15:20:02 +0000 (17:20 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 8 Oct 2018 15:20:09 +0000 (17:20 +0200)
commite5c7c21630f9d67425bb3916cbc51deef185d2be
tree941be7912e9f31670e29c448e04d17178ed8cb51
parent8c4a7593f2189a57d348f4c3caf9fc1e3d552059
Workbench: Smoke: Port back Flame display

The appearance is a bit different than 2.79 where the flame was just added
on top of the smoke without correct blending.

Now it's much more realistic and using volumetric integration. You can see
the smoke actually masking the flame.

The other difference is that the flame color was not using proper color
managed blending. Now with the use of filmic it shows bright yellow.
This could be adjusted and displayed as a user parameter in the future.
source/blender/blenloader/intern/readfile.c
source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl
source/blender/draw/engines/workbench/workbench_volume.c
source/blender/gpu/intern/gpu_draw.c
source/blender/makesdna/DNA_smoke_types.h