5 #include "CesiumGltf/Library.h"
6 #include "CesiumGltf/MaterialNormalTextureInfo.h"
7 #include "CesiumGltf/MaterialOcclusionTextureInfo.h"
8 #include "CesiumGltf/MaterialPBRMetallicRoughness.h"
9 #include "CesiumGltf/NamedObject.h"
10 #include "CesiumGltf/TextureInfo.h"
21 static inline constexpr
const char* TypeName =
"Material";
27 inline static const std::string OPAQUE =
"OPAQUE";
29 inline static const std::string MASK =
"MASK";
31 inline static const std::string BLEND =
"BLEND";
82 std::vector<double> emissiveFactor = {0, 0, 0};
93 std::string alphaMode = AlphaMode::OPAQUE;
105 double alphaCutoff = 0.5;
115 bool doubleSided =
false;
Classes for working with glTF models.
Known values for The alpha rendering mode of the material.
The material appearance of a primitive.
std::optional< CesiumGltf::MaterialNormalTextureInfo > normalTexture
The tangent space normal texture.
std::optional< CesiumGltf::MaterialOcclusionTextureInfo > occlusionTexture
The occlusion texture.
std::optional< CesiumGltf::MaterialPBRMetallicRoughness > pbrMetallicRoughness
A set of parameter values that are used to define the metallic-roughness material model from Physical...
std::optional< CesiumGltf::TextureInfo > emissiveTexture
The emissive texture.
The base class for objects in a glTF that have a name.