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

Method Material

Source/Falcor/Scene/Material/Material.cpp:62–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 Material::Material(ref<Device> pDevice, const std::string& name, MaterialType type)
63 : mpDevice(pDevice)
64 , mName(name)
65 {
66 mHeader.setMaterialType(type);
67 mHeader.setAlphaMode(AlphaMode::Opaque);
68 mHeader.setAlphaThreshold(0.5h);
69 mHeader.setActiveLobes(static_cast<uint32_t>(LobeType::All));
70 mHeader.setIoR(1.h);
71 }
72
73 bool Material::renderUI(Gui::Widgets& widget)
74 {

Callers

nothing calls this directly

Calls 2

setAlphaModeMethod · 0.45
setAlphaThresholdMethod · 0.45

Tested by

no test coverage detected