MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / replaceMaterial

Method replaceMaterial

Source/Falcor/Scene/SceneBuilder.cpp:933–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931 }
932
933 void SceneBuilder::replaceMaterial(const ref<Material>& pMaterial, const ref<Material>& pReplacement)
934 {
935 FALCOR_CHECK(pMaterial != nullptr, "'pMaterial' is missing");
936 FALCOR_CHECK(pReplacement != nullptr, "'pReplacement' is missing");
937 mSceneData.pMaterials->replaceMaterial(pMaterial, pReplacement);
938 }
939
940 void SceneBuilder::loadMaterialTexture(const ref<Material>& pMaterial, Material::TextureSlot slot, const std::filesystem::path& path)
941 {

Callers 2

FALCOR_SCRIPT_BINDINGFunction · 0.45
replaceMaterialFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected