Searched refs:normalTexture (Results 1 - 4 of 4) sorted by relevance
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2_data_structures.h | 459 // normalTexture is not specified. This value is linear." 460 NormalTexture normalTexture; member 501 NormalTexture normalTexture; member
|
H A D | gltf2_exporter.cpp | 1014 exportMaterial.clearcoat.normalTexture.textureInfo.index = GetTextureIndex( in ExportGltfMaterialClearcoat() 1016 exportMaterial.clearcoat.normalTexture.scale = in ExportGltfMaterialClearcoat() 1176 exportMaterial.normalTexture.textureInfo.index = in ExportGltfMaterial() 1178 exportMaterial.normalTexture.scale = materialDesc.textures[MaterialComponent::TextureIndex::NORMAL].factor.x; 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() 1767 auto& jsonNormalTexture = jsonMaterial["normalTexture"] in ExportMaterials() [all...] |
H A D | gltf2_loader.cpp | 1007 bool ParseNormalTexture(LoadResult& loadResult, const json::value& jsonData, NormalTexture& normalTexture) 1009 if (auto normalJson = jsonData.find("normalTexture"); normalJson) { 1010 if (!ParseTextureInfo(loadResult, normalTexture.textureInfo, *normalJson)) { 1014 if (!ParseOptionalNumber<float>(loadResult, normalTexture.scale, *normalJson, "scale", normalTexture.scale)) { 1107 const auto parseClearcoatNormalTexture = [&normalTexture = clearcoat.normalTexture]( 1109 if (!ParseTextureInfo(loadResult, normalTexture.textureInfo, clearcoat)) { 1113 if (!ParseOptionalNumber(loadResult, normalTexture.scale, clearcoat, "scale", normalTexture [all...] |
H A D | gltf2_importer.cpp | 718 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::TextureIndex::NORMAL); in ImportMaterial() 1711 desc.textures[MaterialComponent::TextureIndex::NORMAL].factor.x = gltfMaterial.normalTexture.scale; in ImportMaterial()
|
Completed in 12 milliseconds