diff options
author | Matt Ebb <matt@mke3.net> | 2009-08-25 10:30:09 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-08-25 10:30:09 +0400 |
commit | a81b458dbde1b688170271b0e3978bb86c03f061 (patch) | |
tree | 35e6323331ea72eecb914f41ad3025a60d46c184 /source/blender/editors | |
parent | 33343fced5d7be2585228300392bfb3adde7ff2e (diff) | |
parent | ea97a373834ea956ad0778b2c535452a6ecb1752 (diff) |
* Volume Rendering
Finally in 2.5 branch :)
Still things to do, but will continue working in here. I won't bother
repeating the commit messages from the last year or so, however I've
written up some technical docs to help Ton/Brecht/etc review and find
their way around the code:
http://wiki.blender.org/index.php/User:Broken/VolumeRenderingDev
That above page has some known issues and todos listed, but I'm still
interested in bug reports.
Credits for this code:
* Matt Ebb
(with thanks to Red Cartel/ProMotion Studios)
* Raul Fernandez Hernandez (Farsthary) for patches:
o Light cache based multiple scattering approximation
o Initial voxeldata texture code
o Depth Cutoff threshold
* Andre Susano Pinto for BVH range lookup addition
* Trilinear interpolation adapted from pbrt
* Tricubic interpolation from libtricubic
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/preview/previewrender.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/preview/previewrender.c b/source/blender/editors/preview/previewrender.c index 94db74c18d9..d17391811bb 100644 --- a/source/blender/editors/preview/previewrender.c +++ b/source/blender/editors/preview/previewrender.c @@ -307,6 +307,8 @@ static Scene *preview_prepare_scene(Scene *scene, ID *id, int id_type, ShaderPre /* turn on raytracing if needed */ if(mat->mode_l & MA_RAYMIRROR) sce->r.mode |= R_RAYTRACE; + if(mat->material_type == MA_TYPE_VOLUME) + sce->r.mode |= R_RAYTRACE; if((mat->mode_l & MA_RAYTRANSP) && (mat->mode_l & MA_TRANSP)) sce->r.mode |= R_RAYTRACE; if(mat->sss_flag & MA_DIFF_SSS) |