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>2009-08-16 10:10:31 +0400
committerMatt Ebb <matt@mke3.net>2009-08-16 10:10:31 +0400
commitfe984a6e6ca9de9cb358fea0f4f3cf42742a1667 (patch)
tree7f0cd01fa861fe53b665c3410c3b4850cec62630 /source/blender/makesdna/DNA_material_types.h
parenta8872d99a9ff638fe46ec264bfe9636855807f9e (diff)
volume material
* data reorganisation - uses own values now instead of reusing surface material properties (i.e. an individual density value, rather than reusing alpha) Files saved with the old system won't load up the same after this. * improved defaults and ui
Diffstat (limited to 'source/blender/makesdna/DNA_material_types.h')
-rw-r--r--source/blender/makesdna/DNA_material_types.h39
1 files changed, 28 insertions, 11 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h
index 22ec0f6d59e..1729db37ad1 100644
--- a/source/blender/makesdna/DNA_material_types.h
+++ b/source/blender/makesdna/DNA_material_types.h
@@ -48,21 +48,30 @@ struct Ipo;
/* WATCH IT: change type? also make changes in ipo.h */
typedef struct VolumeSettings {
- short stepsize_type;
- short precache_resolution;
- float stepsize, shade_stepsize;
- float depth_cutoff;
- short shade_type;
- short vpad;
- float density_scale;
- float absorption, scattering;
+ float density;
+ float emission;
+ float absorption;
+ float scattering;
+
+ float emission_col[3];
float absorption_col[3];
- short shadeflag;
+ float density_scale;
+ float depth_cutoff;
+
short phasefunc_type;
+ short vpad[3];
float phasefunc_g;
- float vpad2[2];
- float ms_diff, ms_intensity;
+ float stepsize;
+ float shade_stepsize;
+
+ short stepsize_type;
+ short shadeflag;
+ short shade_type;
+ short precache_resolution;
+
+ float ms_diff;
+ float ms_intensity;
int ms_steps;
} VolumeSettings;
@@ -308,6 +317,14 @@ typedef struct Material {
#define MAP_WARP 8192
#define MAP_LAYER 16384
+/* volume mapto - reuse definitions for now - a bit naughty! */
+#define MAP_DENSITY 128
+#define MAP_EMISSION 64
+#define MAP_EMISSION_COL 1
+#define MAP_ABSORPTION 512
+#define MAP_ABSORPTION_COL 8
+#define MAP_SCATTERING 16
+
/* mapto for halo */
//#define MAP_HA_COL 1
//#define MAP_HA_ALPHA 128