GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
material.hpp
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 #ifndef GLVIS_MATERIAL_HPP
13 #define GLVIS_MATERIAL_HPP
14 #include <array>
15 
16 struct Material
17 {
18  std::array<float, 4> ambient;
19  std::array<float, 4> diffuse;
20  std::array<float, 4> specular;
21  float shininess;
22 };
23 
24 struct Light
25 {
26  std::array<float, 4> position;
27  std::array<float, 4> diffuse;
28  std::array<float, 4> specular;
29 };
30 
31 #endif
float shininess
Definition: material.hpp:21
std::array< float, 4 > position
Definition: material.hpp:26
std::array< float, 4 > diffuse
Definition: material.hpp:19
std::array< float, 4 > ambient
Definition: material.hpp:18
std::array< float, 4 > specular
Definition: material.hpp:20
std::array< float, 4 > diffuse
Definition: material.hpp:27
std::array< float, 4 > specular
Definition: material.hpp:28