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 "box.h"
#include "parvol.h"
#include "trace.h"
#include "sphere.h"
#include "light.h"
#include "shade.h"
#include "global.h"
Go to the source code of this file.
Macros | |
#define | TACHYON_INTERNAL 1 |
Functions | |
parvol * | newparvol () |
color | ParVoxelColor (flt scalar) |
color | par_volume_texture (vector *hit, texture *tex, ray *ry) |
parvol* newparvol | ( | ) |
Definition at line 30 of file parvol.c.
References box_intersect(), and box_normal().
color par_volume_texture | ( | vector * | hit, |
texture * | tex, | ||
ray * | ry | ||
) |
Definition at line 63 of file parvol.c.
References parvol::ambient, point_light_t::ctr, parvol::diffuse, parvol::evaluator, FABS, box::max, box::min, parvol::opacity, ParVoxelColor(), parvol::samples, shade_transmission(), VDOT, VNorm(), and VSUB.
color ParVoxelColor | ( | flt | scalar | ) |
Definition at line 41 of file parvol.c.
Referenced by par_volume_texture().