Tachyon (current)
Current Main Branch
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tachyon.h"
#include "macros.h"
#include "vector.h"
#include "util.h"
#include "parallel.h"
#include "threads.h"
#include "vol.h"
#include "box.h"
#include "trace.h"
#include "ui.h"
#include "shade.h"
#include "texture.h"
Go to the source code of this file.
Macros | |
#define | TACHYON_INTERNAL 1 |
Functions | |
int | scalarvol_bbox (void *obj, vector *min, vector *max) |
void * | newscalarvol (void *voidtex, vector min, vector max, int xs, int ys, int zs, const char *fname, scalarvol *invol) |
color | VoxelColor (flt scalar) |
color | scalar_volume_texture (const vector *hit, const texture *tx, ray *ry) |
void | LoadVol (scalarvol *vol) |
void LoadVol | ( | scalarvol * | vol | ) |
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 * | voidtex, |
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 * | hit, |
const texture * | tx, | ||
ray * | ry | ||
) |
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().
int scalarvol_bbox | ( | void * | obj, |
vector * | min, | ||
vector * | max | ||
) |
color VoxelColor | ( | flt | scalar | ) |
Definition at line 116 of file vol.c.
Referenced by scalar_volume_texture().