Home
last modified time | relevance | path

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

/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_data_structures.h460 NormalTexture normalTexture; in CORE3D_BEGIN_NAMESPACE() member
501 NormalTexture normalTexture; in CORE3D_BEGIN_NAMESPACE() member
H A Dgltf2_exporter.cpp1014 exportMaterial.clearcoat.normalTexture.textureInfo.index = GetTextureIndex( in ExportGltfMaterialClearcoat()
1016 exportMaterial.clearcoat.normalTexture.scale = in ExportGltfMaterialClearcoat()
1176 exportMaterial.normalTexture.textureInfo.index = in ExportGltfMaterial()
1603 if (clearcoat.normalTexture.textureInfo.index != GLTF_INVALID_INDEX) { in ExportClearcoat()
1605 ExportTextureInfo(clearcoat.normalTexture.textureInfo); in ExportClearcoat()
1606 if (clearcoat.normalTexture.scale != 1.f) { in ExportClearcoat()
1607 jsonNormalTexture["scale"] = clearcoat.normalTexture.scale; in ExportClearcoat()
1766 if (material->normalTexture.textureInfo.index != GLTF_INVALID_INDEX) { in ExportMaterials()
1768 ExportTextureInfo(material->normalTexture.textureInfo); in ExportMaterials()
1769 if (material->normalTexture.scale != 1.f) { in ExportMaterials()
[all …]
H A Dgltf2_loader.cpp1007 …rseNormalTexture(LoadResult& loadResult, const json::value& jsonData, NormalTexture& normalTexture) in ParseNormalTexture() argument
1010 if (!ParseTextureInfo(loadResult, normalTexture.textureInfo, *normalJson)) { in ParseNormalTexture()
1014 …if (!ParseOptionalNumber<float>(loadResult, normalTexture.scale, *normalJson, "scale", normalTextu… in ParseNormalTexture()
1107 const auto parseClearcoatNormalTexture = [&normalTexture = clearcoat.normalTexture]( in ParseKhrMaterialsClearcoat()
1109 if (!ParseTextureInfo(loadResult, normalTexture.textureInfo, clearcoat)) { in ParseKhrMaterialsClearcoat()
1113 …if (!ParseOptionalNumber(loadResult, normalTexture.scale, clearcoat, "scale", normalTexture.scale)… in ParseKhrMaterialsClearcoat()
1346 if (!ParseNormalTexture(loadResult, jsonData, material->normalTexture)) { in ParseMaterial()
H A Dgltf2_importer.cpp718 …hasNormalMap = (primitive.material->normalTexture.textureInfo.index != GLTF2::GLTF_INVALID_INDEX || in CreatePrimitiveImportInfo()
719 … primitive.material->clearcoat.normalTexture.textureInfo.index != GLTF2::GLTF_INVALID_INDEX); in CreatePrimitiveImportInfo()
1003 if (material.normalTexture.textureInfo == image) { in NormalFlags()
1059 if (material.clearcoat.normalTexture.textureInfo == image) { in ClearcoatNormalFlags()
1225 if (auto nor = ResolveSampler(material.normalTexture.textureInfo, data, importResult); nor) { in ResolveDefaultSampler()
1584 … FillTextureParams(gltfMaterial.clearcoat.normalTexture.textureInfo, importResult, data, em, desc, in FillClearcoat()
1587 gltfMaterial.clearcoat.normalTexture.scale; in FillClearcoat()
1710 …gltfMaterial.normalTexture.textureInfo, importResult, data, em, desc, MaterialComponent::TextureIn… in ImportMaterial()
1711 …desc.textures[MaterialComponent::TextureIndex::NORMAL].factor.x = gltfMaterial.normalTexture.scale; in ImportMaterial()