Home
last modified time | relevance | path

Searched refs:textures (Results 1 - 13 of 13) sorted by relevance

/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/components/
H A Dmaterial_component_manager.cpp226 void MapTextureSlots(array_view<MaterialComponent::TextureInfo> textures, size_t baseOffset, in MapTextureSlots() argument
240 if (newIndex < BASE_NS::countof(tmp) && oldIndex < textures.size()) { in MapTextureSlots()
241 tmp[newIndex] = BASE_NS::move(textures[oldIndex]); in MapTextureSlots()
247 std::move(std::begin(tmp), std::end(tmp), std::begin(textures)); in MapTextureSlots()
362 DECL_NAMED_PROPERTY2(baseColor, textures[MaterialComponent::TextureIndex::BASE_COLOR], "Base Color", 0)
363 DECL_NAMED_PROPERTY2(normal, textures[MaterialComponent::TextureIndex::NORMAL], "Normal Map", 0)
364 DECL_NAMED_PROPERTY2(material, textures[MaterialComponent::TextureIndex::MATERIAL], "Material", 0)
365 DECL_NAMED_PROPERTY2(emissive, textures[MaterialComponent::TextureIndex::EMISSIVE], "Emissive", 0)
366 DECL_NAMED_PROPERTY2(ambientOcclusion, textures[MaterialComponent::TextureIndex::AO], "Ambient Occlusion", 0)
367 DECL_NAMED_PROPERTY2(clearcoat, textures[MaterialComponen
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_exporter.cpp970 if (auto handle = gpuHandleManager.Read(materialDesc.textures[textureIndex].image); handle) { in GetTextureIndex()
976 if (auto handle = gpuHandleManager.Read(materialDesc.textures[textureIndex].sampler); handle) { in GetTextureIndex()
990 materialDesc.textures[MaterialComponent::TextureIndex::BASE_COLOR].factor; in ExportGltfMaterialMetallicRoughness()
994 materialDesc.textures[MaterialComponent::TextureIndex::MATERIAL].factor.z; in ExportGltfMaterialMetallicRoughness()
996 materialDesc.textures[MaterialComponent::TextureIndex::MATERIAL].factor.y; in ExportGltfMaterialMetallicRoughness()
1006 if (materialDesc.textures[MaterialComponent::TextureIndex::CLEARCOAT].factor.x > 0.0f) { in ExportGltfMaterialClearcoat()
1007 exportMaterial.clearcoat.factor = materialDesc.textures[MaterialComponent::TextureIndex::CLEARCOAT].factor.x; in ExportGltfMaterialClearcoat()
1009 materialDesc.textures[MaterialComponent::TextureIndex::CLEARCOAT_ROUGHNESS].factor.y; in ExportGltfMaterialClearcoat()
1017 materialDesc.textures[MaterialComponent::TextureIndex::CLEARCOAT_NORMAL].factor.x; in ExportGltfMaterialClearcoat()
1027 if (materialDesc.textures[MaterialComponen in ExportGltfMaterialIor()
[all...]
H A Dgltf2_importer.cpp424 if (index != GLTF2::GLTF_INVALID_INDEX && index < importResult.data.textures.size()) { in GetImportedTextureHandle()
425 return importResult.data.textures[index]; in GetImportedTextureHandle()
1127 // Generating mipmaps for all textures (if not already contained in the image). in ResolveImageLoadFlags()
1295 for (size_t i = 0; i < data.textures.size(); ++i) { in ResolveReferencedImages()
1296 const GLTF2::Texture& texture = *(data.textures[i]); in ResolveReferencedImages()
1459 desc.textures[index].image = GetImportedTextureHandle(importResult, textureInfo.index); in FillTextureParams()
1461 desc.textures[index].sampler = ResolveSampler(*textureInfo.texture, data, importResult); in FillTextureParams()
1464 FillTextureTransform(textureInfo, desc.textures[index].transform); in FillTextureParams()
1537 desc.textures[MaterialComponent::TextureIndex::BASE_COLOR].factor = gltfMaterial.metallicRoughness.baseColorFactor; in FillMetallicRoughness()
1542 desc.textures[MaterialComponen in FillMetallicRoughness()
[all...]
H A Ddata.h55 BASE_NS::vector<BASE_NS::unique_ptr<GLTF2::Texture>> textures; member
H A Dgltf2_loader.cpp758 if (info.index != GLTF_INVALID_INDEX && info.index < loadResult.data->textures.size()) {
759 info.texture = loadResult.data->textures[info.index].get();
888 loadResult.data->textures.push_back(move(texture));
2395 // Fix all textures to reference the first image.
2396 for (TextureContainer::iterator textureIt = loadResult.data->textures.begin();
2397 textureIt != loadResult.data->textures.end(); ++textureIt) {
2711 if (!ForEachObjectInArray(loadResult, jsonData, "textures", ParseTexture)) {
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dmaterial_impl.cpp336 uint32_t index, BASE_NS::vector<SCENE_NS::ITextureInfo::Ptr>& textures) in GetTextureInfoByIndex()
343 auto it = std::find(textures.begin(), textures.end(), existingInfo); in GetTextureInfoByIndex()
344 if (it == textures.end()) { in GetTextureInfoByIndex()
345 // Add this info to textures list. in GetTextureInfoByIndex()
346 textures.push_back(existingInfo); in GetTextureInfoByIndex()
351 for (auto& info : textures) { in GetTextureInfoByIndex()
361 BASE_NS::vector<SCENE_NS::ITextureInfo::Ptr>& textures) in BindTextureSlot()
383 auto info = GetTextureInfoByIndex(textureSlotIndex, textures); in BindTextureSlot()
391 textures in BindTextureSlot()
335 GetTextureInfoByIndex( uint32_t index, BASE_NS::vector<SCENE_NS::ITextureInfo::Ptr>& textures) GetTextureInfoByIndex() argument
360 BindTextureSlot(const BASE_NS::string_view& propName, META_NS::IMetadata::Ptr& meta, BASE_NS::vector<SCENE_NS::ITextureInfo::Ptr>& textures) BindTextureSlot() argument
1032 BASE_NS::vector<SCENE_NS::ITextureInfo::Ptr> textures; SynchronizeInputsFromMetadata() local
[all...]
H A Dscene_holder.cpp1207 entity = handle->textures[index].image; in GetImageEntity()
1860 handle->textures[index].image = imageEntity; in SetTexture()
2270 handle->textures[index].sampler = ecs_->GetEntityManager().GetReferenceCounted(entity); in SetSampler()
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/
H A Dmaterial_component.h124 /** number of textures */
256 DEFINE_ARRAY_PROPERTY(TextureInfo, TextureIndex::TEXTURE_COUNT, textures, "", PropertyFlags::IS_HIDDEN,
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/gltf/
H A Dgltf.h127 /** Imported textures. */
128 BASE_NS::vector<CORE_NS::EntityReference> textures; member
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/loaders/
H A Dintf_scene_loader.h65 /** Imported textures. */
66 BASE_NS::vector<CORE_NS::EntityReference> textures; member
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Drender_system.cpp606 for (const MaterialComponent::TextureInfo& info : materialDesc.textures) { in MaterialHandles()
662 if (matComp.textures[MaterialComponent::TextureIndex::CLEARCOAT].factor.x > 0.0f) { in RenderMaterialFlagsFromMaterialValues()
665 if ((matComp.textures[MaterialComponent::TextureIndex::SHEEN].factor.x > 0.0f) || in RenderMaterialFlagsFromMaterialValues()
666 (matComp.textures[MaterialComponent::TextureIndex::SHEEN].factor.y > 0.0f) || in RenderMaterialFlagsFromMaterialValues()
667 (matComp.textures[MaterialComponent::TextureIndex::SHEEN].factor.z > 0.0f)) { in RenderMaterialFlagsFromMaterialValues()
670 if (matComp.textures[MaterialComponent::TextureIndex::SPECULAR].factor != Math::Vec4(1.f, 1.f, 1.f, 1.f) || in RenderMaterialFlagsFromMaterialValues()
674 if (matComp.textures[MaterialComponent::TextureIndex::TRANSMISSION].factor.x > 0.0f) { in RenderMaterialFlagsFromMaterialValues()
710 const auto& base = matComp.textures[MaterialComponent::TextureIndex::BASE_COLOR]; in ValidateInputColor()
715 const auto& mat = matComp.textures[MaterialComponent::TextureIndex::MATERIAL]; in ValidateInputColor()
739 const auto& tex = matDesc.textures[id in InputMaterialUniformsFromMaterialComponent()
[all...]
/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/
H A Dlume_common.cpp1275 desc.textures[CORE3D_NS::MaterialComponent::TextureIndex::MATERIAL] in LoadCustGeometry()
1277 desc.textures[CORE3D_NS::MaterialComponent::TextureIndex::MATERIAL] in LoadCustGeometry()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dscene_util.cpp367 matComponent.textures[MaterialComponent::TextureIndex::CLEARCOAT_ROUGHNESS].image = in CreateReflectionPlaneObjectFromEntity()

Completed in 23 milliseconds