5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/TextureInfo.h>
7#include <CesiumUtility/ExtensibleObject.h>
23 static constexpr const char* TypeName =
"MaterialPBRMetallicRoughness";
31 std::vector<double> baseColorFactor = {1, 1, 1, 1};
52 double metallicFactor = 1;
60 double roughnessFactor = 1;
84 accum += int64_t(
sizeof(
double) * this->baseColorFactor.capacity());
85 if (this->baseColorTexture) {
86 accum += this->baseColorTexture->getSizeBytes() -
89 if (this->metallicRoughnessTexture) {
90 accum += this->metallicRoughnessTexture->getSizeBytes() -
Classes for working with glTF models.
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...