MCPcopy Create free account
hub / github.com/defold/defold / LoadPbrMetallicRoughness

Function LoadPbrMetallicRoughness

engine/modelc/src/modelimporter_gltf.cpp:725–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725static PbrMetallicRoughness* LoadPbrMetallicRoughness(cgltf_pbr_metallic_roughness* in, PbrMetallicRoughness* out, dmHashTable64<void*>* cache)
726{
727 LoadTextureView(&in->base_color_texture, &out->m_BaseColorTexture, cache);
728 LoadTextureView(&in->metallic_roughness_texture, &out->m_MetallicRoughnessTexture, cache);
729
730 CopyArray(in->base_color_factor, out->m_BaseColorFactor);
731
732 out->m_MetallicFactor = in->metallic_factor;
733 out->m_RoughnessFactor = in->roughness_factor;
734 return out;
735}
736
737static PbrSpecularGlossiness* LoadPbrSpecularGlossiness(cgltf_pbr_specular_glossiness* in, PbrSpecularGlossiness* out, dmHashTable64<void*>* cache)
738{

Callers

nothing calls this directly

Calls 2

LoadTextureViewFunction · 0.85
CopyArrayFunction · 0.85

Tested by

no test coverage detected