Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 * 00018 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00019 * All rights reserved. 00020 * 00021 * The Original Code is: all of this file. 00022 * 00023 * Contributor(s): Matt Ebb. 00024 * 00025 * ***** END GPL LICENSE BLOCK ***** 00026 */ 00027 00033 struct Isect; 00034 struct ShadeInput; 00035 struct ShadeResult; 00036 00037 float vol_get_density(struct ShadeInput *shi, const float co[3]); 00038 void vol_get_scattering(ShadeInput *shi, float scatter_col[3], const float co[3], const float view[3]); 00039 00040 void shade_volume_outside(ShadeInput *shi, ShadeResult *shr); 00041 void shade_volume_inside(ShadeInput *shi, ShadeResult *shr); 00042 void shade_volume_shadow(struct ShadeInput *shi, struct ShadeResult *shr, struct Isect *last_is); 00043 00044 #define STEPSIZE_VIEW 0 00045 #define STEPSIZE_SHADE 1 00046 00047 #define VOL_IS_BACKFACE 1 00048 #define VOL_IS_SAMEMATERIAL 2 00049 00050 #define VOL_BOUNDS_DEPTH 0 00051 #define VOL_BOUNDS_SS 1 00052 00053 #define VOL_SHADE_OUTSIDE 0 00054 #define VOL_SHADE_INSIDE 1