* Volume rendering
[blender-staging.git] / source / blender / blenkernel / intern / material.c
index f05b84f6e90ddc8727c9af9467fbbd015feb17a5..5c20858ec63763c4854fa3dc449842943d9a56f2 100644 (file)
@@ -166,6 +166,11 @@ void init_material(Material *ma)
        ma->sss_texfac= 0.0f;
        ma->sss_front= 1.0f;
        ma->sss_back= 1.0f;
+       
+       ma->vol_stepsize = 0.2f;
+       ma->vol_shade_stepsize = 0.2f;
+       ma->vol_absorption = 1.0f;
+       ma->vol_scattering = 1.0f;
 
        ma->mode= MA_TRACEBLE|MA_SHADBUF|MA_SHADOW|MA_RADIO|MA_RAYBIAS|MA_TANGENT_STR;