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

Function LoadVolume

engine/modelc/src/modelimporter_gltf.cpp:785–794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785static Volume* LoadVolume(cgltf_volume* in, Volume* out, dmHashTable64<void*>* cache)
786{
787 LoadTextureView(&in->thickness_texture, &out->m_ThicknessTexture, cache);
788
789 CopyArray(in->attenuation_color, out->m_AttenuationColor);
790
791 out->m_ThicknessFactor = in->thickness_factor;
792 out->m_AttenuationDistance = in->attenuation_distance;
793 return out;
794}
795
796static Sheen* LoadSheen(cgltf_sheen* in, Sheen* out, dmHashTable64<void*>* cache)
797{

Callers

nothing calls this directly

Calls 2

LoadTextureViewFunction · 0.85
CopyArrayFunction · 0.85

Tested by

no test coverage detected