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

Function LoadSheen

engine/modelc/src/modelimporter_gltf.cpp:796–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794}
795
796static Sheen* LoadSheen(cgltf_sheen* in, Sheen* out, dmHashTable64<void*>* cache)
797{
798 LoadTextureView(&in->sheen_color_texture, &out->m_SheenColorTexture, cache);
799 LoadTextureView(&in->sheen_roughness_texture, &out->m_SheenRoughnessTexture, cache);
800
801 CopyArray(in->sheen_color_factor, out->m_SheenColorFactor);
802
803 out->m_SheenRoughnessFactor = in->sheen_roughness_factor;
804 return out;
805}
806
807static EmissiveStrength* LoadEmissiveStrength(cgltf_emissive_strength* in, EmissiveStrength* out, dmHashTable64<void*>* cache)
808{

Callers

nothing calls this directly

Calls 2

LoadTextureViewFunction · 0.85
CopyArrayFunction · 0.85

Tested by

no test coverage detected