Assorted small volume render related fixes.
[blender.git] / source / blender / render / intern / source / shadeinput.c
index 2f0f5c72070f5290c6c60d1644de0bdff4db37a3..fc9aba208703b3c9c789b9d4bb03097f827957f9 100644 (file)
@@ -130,7 +130,7 @@ void shade_material_loop(ShadeInput *shi, ShadeResult *shr)
        }
        
        /* depth >= 1 when ray-shading */
-       if(shi->depth==0) {
+       if(shi->depth==0 || shi->volume_depth > 0) {
                if(R.r.mode & R_RAYTRACE) {
                        if(shi->ray_mirror!=0.0f || ((shi->mat->mode & MA_TRANSP) && (shi->mat->mode & MA_RAYTRANSP) && shr->alpha!=1.0f)) {
                                /* ray trace works on combined, but gives pass info */