5#ifndef QSSGGLTFDOCUMENT_P_H
6#define QSSGGLTFDOCUMENT_P_H
19#include <QtQuick3DGltf/qtquick3dgltfexports.h>
21#include <QtCore/qbytearray.h>
22#include <QtCore/qhash.h>
23#include <QtCore/qjsonobject.h>
24#include <QtCore/qlist.h>
25#include <QtCore/qmath.h>
26#include <QtCore/qstring.h>
27#include <QtCore/qstringlist.h>
28#include <QtGui/qmatrix4x4.h>
29#include <QtGui/qquaternion.h>
30#include <QtGui/qvector2d.h>
31#include <QtGui/qvector3d.h>
32#include <QtGui/qvector4d.h>
115 switch (componentType) {
347 if (variantIndex >= 0) {
348 for (
const VariantMapping &mapping : variantMappings) {
349 if (mapping.variants.contains(variantIndex))
350 return mapping.material;
478 QSSGGltf::Asset asset;
479 QList<QSSGGltf::Buffer> buffers;
480 QList<QSSGGltf::BufferView> bufferViews;
481 QList<QSSGGltf::Accessor> accessors;
482 QList<QSSGGltf::Image> images;
483 QList<QSSGGltf::Sampler> samplers;
484 QList<QSSGGltf::Texture> textures;
485 QList<QSSGGltf::Material> materials;
486 QList<QSSGGltf::Mesh> meshes;
487 QList<QSSGGltf::Node> nodes;
488 QList<QSSGGltf::Skin> skins;
489 QList<QSSGGltf::Animation> animations;
490 QList<QSSGGltf::Camera> cameras;
491 QList<QSSGGltf::Light> lights;
492 QList<QSSGGltf::Scene> scenes;
495 QStringList extensionsUsed;
496 QStringList extensionsRequired;
497 QStringList materialVariants;
498 QJsonObject rootExtensions;
ComponentType indicesComponentType
ComponentType componentType
static int componentByteSize(ComponentType componentType)
std::optional< Sparse > sparse
int elementByteSize() const
static int componentCount(Type type)
Interpolation interpolation
QList< AnimationSampler > samplers
QList< AnimationChannel > channels
TextureInfo anisotropyTexture
TextureInfo clearcoatTexture
float clearcoatRoughnessFactor
TextureInfo clearcoatNormalTexture
TextureInfo clearcoatRoughnessTexture
float iridescenceThicknessMaximum
TextureInfo iridescenceTexture
TextureInfo iridescenceThicknessTexture
float iridescenceThicknessMinimum
TextureInfo sheenRoughnessTexture
float sheenRoughnessFactor
QVector3D sheenColorFactor
TextureInfo sheenColorTexture
TextureInfo diffuseTexture
TextureInfo specularGlossinessTexture
TextureInfo specularTexture
QVector3D specularColorFactor
TextureInfo specularColorTexture
TextureInfo transmissionTexture
QVector3D attenuationColor
TextureInfo thicknessTexture
float attenuationDistance
std::optional< Specular > specular
TextureInfo normalTexture
std::optional< Clearcoat > clearcoat
QVector4D baseColorFactor
TextureInfo baseColorTexture
TextureInfo emissiveTexture
std::optional< Anisotropy > anisotropy
std::optional< float > dispersion
TextureInfo metallicRoughnessTexture
std::optional< float > ior
TextureInfo occlusionTexture
std::optional< Sheen > sheen
std::optional< SpecularGlossiness > specularGlossiness
std::optional< Volume > volume
std::optional< Transmission > transmission
std::optional< Iridescence > iridescence
std::optional< float > emissiveStrength
int effectiveMaterial(int variantIndex) const
QList< VariantMapping > variantMappings
QHash< QByteArray, int > attributes
QList< QHash< QByteArray, int > > targets
QList< MeshPrimitive > primitives
std::optional< TextureTransform > transform