Tachyon (current)  Current Main Branch
parvol.h
Go to the documentation of this file.
1 /*
2  * parvol.h - Volume rendering definitions etc.
3  *
4  * (C) Copyright 1994-2022 John E. Stone
5  * SPDX-License-Identifier: BSD-3-Clause
6  *
7  * $Id: parvol.h,v 1.6 2022/02/18 17:55:28 johns Exp $
8  *
9  */
10 
11 typedef struct {
12  RT_OBJECT_HEAD
13  vector min;
14  vector max;
18  int samples;
19  flt (* evaluator)(flt, flt, flt);
20 } parvol;
21 
22 parvol * newparvol();
23 color par_volume_texture(vector *, texture *, ray *);
24 
25 
Definition: parvol.h:11
flt diffuse
diffuse lighting coefficient
Definition: parvol.h:16
RT_OBJECT_HEAD vector min
minimum axis-aligned box coordinate
Definition: parvol.h:13
parvol * newparvol()
Definition: parvol.c:30
vector max
maximum axis-aligned box coordinate
Definition: parvol.h:14
double flt
generic floating point number, using double
Definition: tachyon.h:47
color par_volume_texture(vector *, texture *, ray *)
Definition: parvol.c:63
flt opacity
transmissive surface factor
Definition: parvol.h:17
flt ambient
ambient lighting coefficient
Definition: parvol.h:15
int samples
number of volumetric samples to take
Definition: parvol.h:18