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 "box.h"
#include "extvol.h"
#include "trace.h"
#include "sphere.h"
#include "light.h"
#include "shade.h"
Go to the source code of this file.
Macros | |
#define | TACHYON_INTERNAL 1 |
Functions | |
int | extvol_bbox (void *obj, vector *min, vector *max) |
extvol * | newextvol (void *voidtex, vector min, vector max, int samples, flt(*evaluator)(flt, flt, flt)) |
color | ExtVoxelColor (flt scalar) |
color | ext_volume_texture (const vector *hit, const texture *tx, ray *ry) |
Variables | |
static object_methods | extvol_methods |
color ext_volume_texture | ( | const vector * | hit, |
const texture * | tx, | ||
ray * | ry | ||
) |
Definition at line 115 of file extvol.c.
References extvol::ambient, point_light_t::ctr, extvol::diffuse, extvol::evaluator, ExtVoxelColor(), FABS, box::max, box::min, extvol::opacity, extvol::samples, shade_transmission(), VDOT, VNorm(), and VSUB.
Referenced by newextvol().
int extvol_bbox | ( | void * | obj, |
vector * | min, | ||
vector * | max | ||
) |
color ExtVoxelColor | ( | flt | scalar | ) |
Definition at line 93 of file extvol.c.
Referenced by ext_volume_texture().
extvol* newextvol | ( | void * | voidtex, |
vector | min, | ||
vector | max, | ||
int | samples, | ||
flt(*)(flt, flt, flt) | evaluator | ||
) |
Definition at line 47 of file extvol.c.
References extvol::ambient, extvol::diffuse, extvol::evaluator, ext_volume_texture(), extvol_methods, extvol::max, extvol::min, extvol::opacity, and extvol::samples.
Referenced by rt_extvol().
|
static |
Definition at line 40 of file extvol.c.
Referenced by newextvol().