Blender V2.61 - r43446
Defines | Functions

volumetric.h File Reference

Go to the source code of this file.

Defines

#define STEPSIZE_VIEW   0
#define STEPSIZE_SHADE   1
#define VOL_IS_BACKFACE   1
#define VOL_IS_SAMEMATERIAL   2
#define VOL_BOUNDS_DEPTH   0
#define VOL_BOUNDS_SS   1
#define VOL_SHADE_OUTSIDE   0
#define VOL_SHADE_INSIDE   1

Functions

float vol_get_density (struct ShadeInput *shi, const float co[3])
void vol_get_scattering (ShadeInput *shi, float scatter_col[3], const float co[3], const float view[3])
void shade_volume_outside (ShadeInput *shi, ShadeResult *shr)
void shade_volume_inside (ShadeInput *shi, ShadeResult *shr)
void shade_volume_shadow (struct ShadeInput *shi, struct ShadeResult *shr, struct Isect *last_is)

Detailed Description

Definition in file volumetric.h.


Define Documentation

#define STEPSIZE_SHADE   1

Definition at line 45 of file volumetric.h.

#define STEPSIZE_VIEW   0

Definition at line 44 of file volumetric.h.

#define VOL_BOUNDS_DEPTH   0

Definition at line 50 of file volumetric.h.

Referenced by shade_volume_shadow(), vol_get_bounds(), and volume_trace().

#define VOL_BOUNDS_SS   1

Definition at line 51 of file volumetric.h.

Referenced by vol_shade_one_lamp().

#define VOL_IS_BACKFACE   1

Definition at line 47 of file volumetric.h.

#define VOL_IS_SAMEMATERIAL   2

Definition at line 48 of file volumetric.h.

#define VOL_SHADE_INSIDE   1

Definition at line 54 of file volumetric.h.

Referenced by shade_volume_inside(), and volume_trace().

#define VOL_SHADE_OUTSIDE   0

Definition at line 53 of file volumetric.h.

Referenced by shade_volume_outside(), and volume_trace().


Function Documentation

void shade_volume_inside ( ShadeInput shi,
ShadeResult shr 
)
void shade_volume_outside ( ShadeInput shi,
ShadeResult shr 
)

Definition at line 791 of file volumetric.c.

References VOL_SHADE_OUTSIDE, and volume_trace().

Referenced by shade_input_do_shade(), and shade_ray().

void shade_volume_shadow ( struct ShadeInput shi,
struct ShadeResult shr,
struct Isect last_is 
)
float vol_get_density ( struct ShadeInput shi,
const float  co[3] 
)
void vol_get_scattering ( ShadeInput shi,
float  scatter_col[3],
const float  co[3],
const float  view[3] 
)