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