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

Function LoadSpecular

engine/modelc/src/modelimporter_gltf.cpp:774–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772}
773
774static Specular* LoadSpecular(cgltf_specular* in, Specular* out, dmHashTable64<void*>* cache)
775{
776 LoadTextureView(&in->specular_texture, &out->m_SpecularTexture, cache);
777 LoadTextureView(&in->specular_color_texture, &out->m_SpecularColorTexture, cache);
778
779 CopyArray(in->specular_color_factor, out->m_SpecularColorFactor);
780
781 out->m_SpecularFactor = in->specular_factor;
782 return out;
783}
784
785static Volume* LoadVolume(cgltf_volume* in, Volume* out, dmHashTable64<void*>* cache)
786{

Callers

nothing calls this directly

Calls 2

LoadTextureViewFunction · 0.85
CopyArrayFunction · 0.85

Tested by

no test coverage detected