diff options
author | Matt Ebb <matt@mke3.net> | 2008-10-13 04:35:58 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2008-10-13 04:35:58 +0400 |
commit | c0ddd5fd4914f7876cdf36225566d795e415bbf1 (patch) | |
tree | db15b655f7b0145884428250e07f0a1f1f99092d /source/blender/makesdna/DNA_material_types.h | |
parent | a6bd4480ee218d4e3885691262aed13abf4241b0 (diff) |
* New option for step size: Randomized
This is on by default, and trades random noise for banding. It jitters
the step size from 75% to 125% of its original amount, and since it
uses the threaded random seeds, shouldn't flicker during animation.
These two images took roughly the same time to render:
http://mke3.net/blender/devel/rendering/volumetrics/vol_stepsize_randomized.jpg
Diffstat (limited to 'source/blender/makesdna/DNA_material_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_material_types.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h index 3efb8d9c116..86de34e5d26 100644 --- a/source/blender/makesdna/DNA_material_types.h +++ b/source/blender/makesdna/DNA_material_types.h @@ -63,11 +63,12 @@ typedef struct Material { /* end synced with render_types.h */ short material_type; /* solid, halo, volumetric */ - short pad5[3]; + short pad5[2]; /* volumetrics */ - float vol_density_scale; + short vol_stepsize_type; float vol_stepsize, vol_shade_stepsize; + float vol_density_scale; float vol_absorption, vol_scattering; float vol_absorption_col[3]; short vol_shadeflag; @@ -347,6 +348,11 @@ typedef struct Material { /* sss_flag */ #define MA_DIFF_SSS 1 +/* vol_stepsize_type */ +#define MA_VOL_STEP_RANDOMIZED 0 +#define MA_VOL_STEP_CONSTANT 1 +#define MA_VOL_STEP_ADAPTIVE 2 + /* vol_shadeflag */ #define MA_VOL_SHADED 1 #define MA_VOL_ATTENUATED 2 |