Cargo Features

gltf-json has no features set by default.

[dependencies]
gltf-json = { version = "1.4.1", features = ["allow_empty_texture", "names", "extensions", "extras", "KHR_lights_punctual", "KHR_materials_ior", "KHR_materials_pbrSpecularGlossiness", "KHR_materials_specular", "KHR_materials_transmission", "KHR_materials_unlit", "KHR_materials_variants", "KHR_materials_volume", "KHR_texture_transform", "KHR_materials_emissive_strength"] }
allow_empty_texture
names

Affects accessor::Accessor.name, animation::Animation.name, buffer::Buffer.name, buffer::View.name, camera::Camera.name, scene::Light.name, image::Image.name, material::Material.name, mesh::Mesh.name, scene::Node.name, scene::Scene.name, skin::Skin.name, texture::Sampler.name, texture::Texture.name

extensions

Affects accessor::Accessor.others, animation::Animation.others, buffer::Buffer.others, buffer::View.others, camera::Camera.others, camera::Orthographic.others, camera::Perspective.others, image::Image.others, material::Material.others, material::PbrMetallicRoughness.others, material::PbrSpecularGlossiness.others, material::NormalTexture.others, material::OcclusionTexture.others, mesh::Mesh.others, mesh::Primitive.others, root::Root.others, scene::Node.others, scene::Scene.others, skin::Skin.others, texture::Sampler.others

extras

Affects extras::Extras

KHR_lights_punctual

Affects root::Root.khr_lights_punctual, root::KhrLightsPunctual, scene::Node.khr_lights_punctual, scene::khr_lights_punctual

KHR_materials_ior

Affects material::Material.ior, material::IndexOfRefraction, material::Ior

KHR_materials_pbrSpecularGlossiness

Affects material::Material.pbr_specular_glossiness, material::PbrSpecularGlossiness, material::PbrDiffuseFactor, material::PbrSpecularFactor

KHR_materials_specular

Affects material::Material.specular, material::SpecularFactor, material::SpecularColorFactor, material::Specular

KHR_materials_transmission

Affects material::Material.transmission, material::TransmissionFactor, material::Transmission

KHR_materials_unlit

Affects material::Material.unlit, material::Unlit

KHR_materials_variants

Affects mesh::Primitive.khr_materials_variants, mesh::KhrMaterialsVariants, mesh::Mapping, root::Root.khr_materials_variants, root::KhrMaterialsVariants, scene::khr_materials_variants

KHR_materials_volume

Affects material::Material.volume, material::ThicknessFactor, material::AttenuationDistance, material::AttenuationColor, material::Volume

KHR_texture_transform

Affects texture::Info.texture_transform, texture::TextureTransform, texture::TextureTransformOffset, texture::TextureTransformRotation, texture::TextureTransformScale

KHR_materials_emissive_strength

Affects material::Material.emissive_strength, material::EmissiveStrengthFactor, material::EmissiveStrength