BRL-CAD
plastic.h
Go to the documentation of this file.
1
/* P L A S T I C . H
2
* BRL-CAD
3
*
4
* Copyright (c) 1993-2023 United States Government as represented by
5
* the U.S. Army Research Laboratory.
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public License
9
* version 2.1 as published by the Free Software Foundation.
10
*
11
* This library is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this file; see the file named COPYING for more
18
* information.
19
*/
20
/** @addtogroup liboptical */
21
/** @{ */
22
/** @file plastic.h
23
*
24
*/
25
#ifndef OPTICAL_PLASTIC_H
26
#define OPTICAL_PLASTIC_H
27
28
#include "
common.h
"
29
30
#define PL_NULL ((struct phong_specific *)0)
31
#define PL_O(m) offsetof(struct phong_specific, m)
32
33
/* Local information */
34
struct
phong_specific
{
35
uint32_t
magic
;
36
int
shine
;
37
double
wgt_specular
;
38
double
wgt_diffuse
;
39
double
transmit
;
/**< @brief Moss "transparency" */
40
double
reflect
;
/**< @brief Moss "transmission" */
41
double
refrac_index
;
42
double
extinction
;
43
double
emission
[3];
44
const
struct
mfuncs
*
mfp
;
45
};
46
47
extern
struct
bu_structparse
phong_parse
[];
48
#endif
/* OPTICAL_PLASTIC_H */
49
/** @} */
50
/*
51
* Local Variables:
52
* mode: C
53
* tab-width: 8
54
* indent-tabs-mode: t
55
* c-file-style: "stroustrup"
56
* End:
57
* ex: shiftwidth=4 tabstop=8
58
*/
common.h
Header file for the BRL-CAD common definitions.
phong_parse
struct bu_structparse phong_parse[]
bu_structparse
Definition:
parse.h:139
mfuncs
Definition:
shadefuncs.h:41
phong_specific
Definition:
plastic.h:34
phong_specific::emission
double emission[3]
Definition:
plastic.h:43
phong_specific::wgt_diffuse
double wgt_diffuse
Definition:
plastic.h:38
phong_specific::wgt_specular
double wgt_specular
Definition:
plastic.h:37
phong_specific::reflect
double reflect
Moss "transmission".
Definition:
plastic.h:40
phong_specific::extinction
double extinction
Definition:
plastic.h:42
phong_specific::shine
int shine
Definition:
plastic.h:36
phong_specific::magic
uint32_t magic
Definition:
plastic.h:35
phong_specific::refrac_index
double refrac_index
Definition:
plastic.h:41
phong_specific::transmit
double transmit
Moss "transparency".
Definition:
plastic.h:39
phong_specific::mfp
const struct mfuncs * mfp
Definition:
plastic.h:44
include
optical
plastic.h
Generated on Tue Mar 7 2023 23:41:50 for BRL-CAD by
1.9.3