Tachyon (current)
Current Main Branch
|
Go to the source code of this file.
Functions | |
void * | newscalarvol (void *intex, vector min, vector max, int xs, int ys, int zs, const char *fname, scalarvol *invol) |
void | LoadVol (scalarvol *) |
color | scalar_volume_texture (const vector *, const texture *, ray *) |
void LoadVol | ( | scalarvol * | ) |
Definition at line 284 of file vol.c.
References scalarvol::data, scalarvol::loaded, MSG_0, MSG_ERR, scalarvol::name, rt_mynode(), rt_ui_message(), scalarvol::xres, scalarvol::yres, and scalarvol::zres.
Referenced by newscalarvol().
void* newscalarvol | ( | void * | intex, |
vector | min, | ||
vector | max, | ||
int | xs, | ||
int | ys, | ||
int | zs, | ||
const char * | fname, | ||
scalarvol * | invol | ||
) |
Definition at line 48 of file vol.c.
References constant_texture(), scalarvol::data, scalarvol::loaded, LoadVol(), scalarvol::name, newbox(), scalarvol::opacity, scalar_volume_texture(), scalarvol::xres, scalarvol::yres, and scalarvol::zres.
Referenced by rt_scalarvol().
color scalar_volume_texture | ( | const vector * | , |
const texture * | , | ||
ray * | |||
) |
Definition at line 147 of file vol.c.
References scalarvol::data, FABS, box::max, box::min, scalarvol::opacity, shade_transmission(), SQRT, VoxelColor(), scalarvol::xres, scalarvol::yres, and scalarvol::zres.
Referenced by newscalarvol().