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 */
35 uint32_t magic;
36 int shine;
39 double transmit; /**< @brief Moss "transparency" */
40 double reflect; /**< @brief Moss "transmission" */
42 double extinction;
43 double emission[3];
44 const struct mfuncs *mfp;
45};
46
47extern 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 */
Header file for the BRL-CAD common definitions.
struct bu_structparse phong_parse[]
double emission[3]
Definition: plastic.h:43
double wgt_diffuse
Definition: plastic.h:38
double wgt_specular
Definition: plastic.h:37
double reflect
Moss "transmission".
Definition: plastic.h:40
double extinction
Definition: plastic.h:42
uint32_t magic
Definition: plastic.h:35
double refrac_index
Definition: plastic.h:41
double transmit
Moss "transparency".
Definition: plastic.h:39
const struct mfuncs * mfp
Definition: plastic.h:44