Home
last modified time | relevance | path

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

/ohos5.0/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()
1547 if (material.metallicRoughness.baseColorTexture.index != GLTF_INVALID_INDEX) { in ExportMetallicRoughness()
1550 if (material.metallicRoughness.metallicFactor < 1.f) { in ExportMetallicRoughness()
[all …]
H A Dgltf2_loader.cpp795 …oughness(LoadResult& loadResult, const json::value& jsonData, MetallicRoughness& metallicRoughness) in ParseMetallicRoughness() argument
798 …if (!ParseOptionalMath(loadResult, metallicRoughness.baseColorFactor, *roughnessJson, "baseColorFa… in ParseMetallicRoughness()
799 metallicRoughness.baseColorFactor)) { in ParseMetallicRoughness()
804 [&metallicRoughness](LoadResult& loadResult, const json::value& baseJson) -> bool { in ParseMetallicRoughness()
805 … return ParseTextureInfo(loadResult, metallicRoughness.baseColorTexture, baseJson); in ParseMetallicRoughness()
811 [&metallicRoughness](LoadResult& loadResult, const json::value& baseJson) -> bool { in ParseMetallicRoughness()
812 … return ParseTextureInfo(loadResult, metallicRoughness.metallicRoughnessTexture, baseJson); in ParseMetallicRoughness()
818 metallicRoughness.metallicFactor)) { in ParseMetallicRoughness()
822 … if (!ParseOptionalNumber<float>(loadResult, metallicRoughness.roughnessFactor, *roughnessJson, in ParseMetallicRoughness()
823 "roughnessFactor", metallicRoughness.roughnessFactor)) { in ParseMetallicRoughness()
[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); b… in ResolveDefaultSampler()
1204 …} else if (auto mat = ResolveSampler(material.metallicRoughness.metallicRoughnessTexture, data, im… in ResolveDefaultSampler()
1221 …if (auto spl = ResolveSampler(material.metallicRoughness.baseColorTexture, data, importResult); sp… in ResolveDefaultSampler()
1535 FillTextureParams(gltfMaterial.metallicRoughness.baseColorTexture, importResult, data, em, desc, in FillMetallicRoughness()
1537 …[MaterialComponent::TextureIndex::BASE_COLOR].factor = gltfMaterial.metallicRoughness.baseColorFac… in FillMetallicRoughness()
1540 …FillTextureParams(gltfMaterial.metallicRoughness.metallicRoughnessTexture, importResult, data, em,… in FillMetallicRoughness()
1542 …[MaterialComponent::TextureIndex::MATERIAL].factor.y = gltfMaterial.metallicRoughness.roughnessFac… in FillMetallicRoughness()
1543 …[MaterialComponent::TextureIndex::MATERIAL].factor.z = gltfMaterial.metallicRoughness.metallicFact… in FillMetallicRoughness()
[all …]
H A Dgltf2_data_structures.h453 MetallicRoughness metallicRoughness; in CORE3D_BEGIN_NAMESPACE() member