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

Function LoadTextureView

engine/modelc/src/modelimporter_gltf.cpp:702–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702static void LoadTextureView(cgltf_texture_view* in, TextureView* out, dmHashTable64<void*>* cache)
703{
704 out->m_Texcoord = in->texcoord;
705 out->m_Scale = in->scale;
706
707 out->m_HasTransform = in->has_transform != 0;
708 if (in->has_transform)
709 LoadTransform(&in->transform, &out->m_Transform);
710 else
711 IdentityTransform(&out->m_Transform);
712
713 out->m_Texture = GetFromCache<Texture>(cache, in->texture);
714}
715
716// Material properties
717

Callers 9

LoadPbrMetallicRoughnessFunction · 0.85
LoadClearcoatFunction · 0.85
LoadTransmissionFunction · 0.85
LoadSpecularFunction · 0.85
LoadVolumeFunction · 0.85
LoadSheenFunction · 0.85
LoadIridescenceFunction · 0.85
LoadMaterialsFunction · 0.85

Calls 2

LoadTransformFunction · 0.85
IdentityTransformFunction · 0.85

Tested by

no test coverage detected