Tachyon (current)  Current Main Branch
Macros | Functions
vol.c File Reference
#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)
 

Macro Definition Documentation

◆ TACHYON_INTERNAL

#define TACHYON_INTERNAL   1

Definition at line 16 of file vol.c.

Function Documentation

◆ LoadVol()

void LoadVol ( scalarvol vol)

◆ newscalarvol()

void* newscalarvol ( void *  voidtex,
vector  min,
vector  max,
int  xs,
int  ys,
int  zs,
const char *  fname,
scalarvol invol 
)

◆ scalar_volume_texture()

color scalar_volume_texture ( const vector *  hit,
const texture *  tx,
ray *  ry 
)

◆ scalarvol_bbox()

int scalarvol_bbox ( void *  obj,
vector *  min,
vector *  max 
)

Definition at line 30 of file vol.c.

References box::max, and box::min.

◆ VoxelColor()

color VoxelColor ( flt  scalar)

Definition at line 116 of file vol.c.

Referenced by scalar_volume_texture().