Blender Git Commit Log

Git Commits -> Revision 6b4ac3e

Revision 6b4ac3e by Matt Ebb (master)
September 23, 2008, 07:05 (GMT)
* Volume colour absorption

Rather than a single absorption value to control how much light is absorbed as it
travels through a volume, there's now an additional absorption colour. This is
used to absorb different R/G/B components of light at different amounts. For
example, if a white light shines on a volume which absorbs green and blue
components, the volume will appear red.

To make it easier to use, the colour set in the UI is actually the inverse of the
absorption colour, so the colour you set is the colour that the volume will
appear as.

Here's an example of how it works:
http://mke3.net/blender/devel/rendering/volumetrics/vol_col_absorption.jpg

And this can be textured too:
http://mke3.net/blender/devel/rendering/volumetrics/vol_absorb_textured.png

Keep in mind, this doesn't use accurate spectral light wavelength mixing (just
R/G/B channels) so in cases where the absorption colour is fully red green or
blue, you'll get non-physical results.

Todo: refactor the volume texturing internal interface...

Commit Details:

Full Hash: 6b4ac3e7def9e1b7e11398f483f2b64581939766
SVN Revision: 16697
Parent Commit: 50d0e1a
Lines Changed: +49, -17

7 Modified Paths:

/source/blender/blenkernel/intern/material.c (+1, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+8, -4) (Diff)
/source/blender/makesdna/DNA_material_types.h (+1, -1) (Diff)
/source/blender/render/intern/include/texture.h (+1, -1) (Diff)
/source/blender/render/intern/source/texture.c (+7, -2) (Diff)
/source/blender/render/intern/source/volumetric.c (+28, -7) (Diff)
/source/blender/src/buttons_shading.c (+3, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021