GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
material.cpp
Go to the documentation of this file.
1 // Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
2 // at the Lawrence Livermore National Laboratory. All Rights reserved. See files
3 // LICENSE and NOTICE for details. LLNL-CODE-443271.
4 //
5 // This file is part of the GLVis visualization tool and library. For more
6 // information and source code availability see https://glvis.org.
7 //
8 // GLVis is free software; you can redistribute it and/or modify it under the
9 // terms of the BSD-3 license. We welcome feedback and contributions, see file
10 // CONTRIBUTING.md for details.
11 
12 #include "material.hpp"
13 #include <array>
15 {
16  {
17  { 0.8, 0.8, 0.8, 1.0 },
18  { 0.8, 0.8, 0.8, 1.0 },
19  { 1.0, 1.0, 1.0, 1.0 },
20  100
21  },
22  {
23  { 0.3, 0.3, 0.3, 1.0 },
24  { 0.7, 0.7, 0.7, 1.0 },
25  { 0.8, 0.8, 0.8, 1.0 },
26  20
27  },
28  {
29  { 0.3, 0.3, 0.3, 1.0 },
30  { 1.0, 1.0, 1.0, 1.0 },
31  { 0.0, 0.0, 0.0, 1.0 },
32  0
33  },
34  {
35  { 0.24725, 0.1995, 0.0745, 1.0 },
36  { 0.75164, 0.60648, 0.22648, 1.0 },
37  { 0.628281, 0.555802, 0.366065, 1.0 },
38  51.2
39  },
40  {
41  { 0.0, 0.0, 0.0, 1.0 },
42  { 0.8, 0.8, 0.8, 1.0 },
43  { 0.1, 0.1, 0.1, 1.0 },
44  1.0
45  }
46 };
47 
49 {
50  { { 1.0, 1.0, 1.0, 0.0 }, { 0.9, 0.9, 0.9, 1.0 }, { 0.8, 0.8, 0.8, 1.0 } },
51  { { 0.5, 0.5, 1.0, 0.0 }, { 0.5, 0.5, 0.5, 1.0 }, { 1.0, 1.0, 1.0, 1.0 } },
52  { { 0.0, 0.0, 1.0, 0.0 }, { 0.5, 0.5, 0.5, 1.0 }, { 0.0, 0.0, 0.0, 1.0 } },
53  { { 0.0, 0.0, 1.0, 0.0 }, { 0.7, 0.7, 0.7, 1.0 }, { 0.6, 0.6, 0.6, 1.0 } }
54 };
55 
56 std::array<float,4> amb_setting[] =
57 {
58  { 0.3, 0.3, 0.3, 1.0 },
59  { 0.5, 0.5, 0.5, 1.0 },
60  { 0.5, 0.5, 0.5, 1.0 },
61  { 0.5, 0.5, 0.5, 1.0 },
62  { 0.5, 0.5, 0.5, 1.0 }
63 };
64 
66 {
67  { { 1.0, 0.0, 1.0, 0.0 }, { 0.4, 0.0, 0.0, 1.0 }, { 0.3, 0.3, 0.3, 1.0 } },
68  { { 1.0, 1.0, 1.0, 0.0 }, { 0.0, 0.4, 0.0, 1.0 }, { 0.3, 0.3, 0.3, 1.0 } },
69  { { 0.0, 1.0, 1.0, 0.0 }, { 0.0, 0.0, 0.4, 1.0 }, { 0.3, 0.3, 0.3, 1.0 } }
70 };
std::array< float, 4 > amb_setting[]
Definition: material.cpp:56
Light lights[]
Definition: material.cpp:48
Material materials[5]
Definition: material.cpp:14
Light lights_4[]
Definition: material.cpp:65