MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / HnMaterial

Method HnMaterial

Hydrogent/src/HnMaterial.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76HnMaterial::HnMaterial(const pxr::SdfPath& id) :
77 pxr::HdMaterial{id}
78{
79 m_MaterialData.Attribs.BaseColorFactor = float4{1, 1, 1, 1};
80 m_MaterialData.Attribs.SpecularFactor = float3{1, 1, 1};
81 m_MaterialData.Attribs.NormalScale = 1;
82 m_MaterialData.Attribs.MetallicFactor = 1;
83 m_MaterialData.Attribs.RoughnessFactor = 1;
84 m_MaterialData.Attribs.OcclusionFactor = 1;
85
86 m_MaterialData.Attribs.Workflow = PBR_Renderer::PBR_WORKFLOW_METALL_ROUGH;
87}
88
89
90// Default material

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected