Home
last modified time | relevance | path

Searched refs:metallicRoughness (Results 1 - 4 of 4) sorted by relevance

/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_exporter.cpp989 exportMaterial.metallicRoughness.baseColorFactor = in ExportGltfMaterialMetallicRoughness()
991 exportMaterial.metallicRoughness.baseColorTexture.index = in ExportGltfMaterialMetallicRoughness()
993 exportMaterial.metallicRoughness.metallicFactor = in ExportGltfMaterialMetallicRoughness()
995 exportMaterial.metallicRoughness.roughnessFactor = in ExportGltfMaterialMetallicRoughness()
997 exportMaterial.metallicRoughness.metallicRoughnessTexture.index = in ExportGltfMaterialMetallicRoughness()
1101 exportMaterial.metallicRoughness.baseColorFactor = in ExportGltfMaterialUnlit()
1103 exportMaterial.metallicRoughness.baseColorTexture.index = in ExportGltfMaterialUnlit()
1544 if (material.metallicRoughness.baseColorFactor != DEFAULT_BASECOLOR_FACTOR) { in ExportMetallicRoughness()
1545 jsonMetallicRoughness["baseColorFactor"] = material.metallicRoughness.baseColorFactor.data; in ExportMetallicRoughness()
1547 if (material.metallicRoughness in ExportMetallicRoughness()
[all...]
H A Dgltf2_loader.cpp795 bool ParseMetallicRoughness(LoadResult& loadResult, const json::value& jsonData, MetallicRoughness& metallicRoughness)
798 if (!ParseOptionalMath(loadResult, metallicRoughness.baseColorFactor, *roughnessJson, "baseColorFactor",
799 metallicRoughness.baseColorFactor)) {
804 [&metallicRoughness](LoadResult& loadResult, const json::value& baseJson) -> bool {
805 return ParseTextureInfo(loadResult, metallicRoughness.baseColorTexture, baseJson);
811 [&metallicRoughness](LoadResult& loadResult, const json::value& baseJson) -> bool {
812 return ParseTextureInfo(loadResult, metallicRoughness.metallicRoughnessTexture, baseJson);
817 if (!ParseOptionalNumber<float>(loadResult, metallicRoughness.metallicFactor, *roughnessJson, "metallicFactor",
818 metallicRoughness.metallicFactor)) {
822 if (!ParseOptionalNumber<float>(loadResult, metallicRoughness
[all...]
H A Dgltf2_importer.cpp985 if (material.metallicRoughness.baseColorTexture == image) { in BaseColorFlags()
995 if (material.metallicRoughness.metallicRoughnessTexture == image) { in MetallicRoughnessFlags()
1202 if (auto base = ResolveSampler(material.metallicRoughness.baseColorTexture, data, importResult); base) { in ResolveDefaultSampler()
1204 } else if (auto mat = ResolveSampler(material.metallicRoughness.metallicRoughnessTexture, data, importResult); in ResolveDefaultSampler()
1221 if (auto spl = ResolveSampler(material.metallicRoughness.baseColorTexture, data, importResult); spl) { in ResolveDefaultSampler()
1535 FillTextureParams(gltfMaterial.metallicRoughness.baseColorTexture, importResult, data, em, desc, in FillMetallicRoughness()
1537 desc.textures[MaterialComponent::TextureIndex::BASE_COLOR].factor = gltfMaterial.metallicRoughness.baseColorFactor; in FillMetallicRoughness()
1540 FillTextureParams(gltfMaterial.metallicRoughness.metallicRoughnessTexture, importResult, data, em, desc, in FillMetallicRoughness()
1542 desc.textures[MaterialComponent::TextureIndex::MATERIAL].factor.y = gltfMaterial.metallicRoughness.roughnessFactor; in FillMetallicRoughness()
1543 desc.textures[MaterialComponent::TextureIndex::MATERIAL].factor.z = gltfMaterial.metallicRoughness in FillMetallicRoughness()
[all...]
H A Dgltf2_data_structures.h453 MetallicRoughness metallicRoughness; member

Completed in 10 milliseconds