Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2008-10-13 03:39:52 +0400
committerMatt Ebb <matt@mke3.net>2008-10-13 03:39:52 +0400
commita6bd4480ee218d4e3885691262aed13abf4241b0 (patch)
treeabad0c3357cfd87f91a671b8554be4c3db83bef7 /source/blender/makesdna/DNA_material_types.h
parent2211b46084f4dc965f66649f01fcda69150225e8 (diff)
* A few volume rendering tweaks:
- modified point density so that it returns a more consistent density with regards to search radius. Previously larger radii would give much higher density but this is equalised out now. - Added a new volume material option 'density scale'. This is an overall scale multiplier for density, allowing you to (for example) crank down the density to a more desirable range if you're working at a large physical scale. Volume rendering is fundamentally scale dependant so this lets you correct to get the right visual result. - Also tweaked a few constants, old files won't render exactly the same, just minor things though.
Diffstat (limited to 'source/blender/makesdna/DNA_material_types.h')
-rw-r--r--source/blender/makesdna/DNA_material_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h
index 4e006d17682..3efb8d9c116 100644
--- a/source/blender/makesdna/DNA_material_types.h
+++ b/source/blender/makesdna/DNA_material_types.h
@@ -66,7 +66,7 @@ typedef struct Material {
short pad5[3];
/* volumetrics */
- float vol_alphathresh;
+ float vol_density_scale;
float vol_stepsize, vol_shade_stepsize;
float vol_absorption, vol_scattering;
float vol_absorption_col[3];