Function Kataglyphis::addTextureOrDefault#
Defined in File ModelAssembly.ixx
Function Documentation#
Appends
texturewhencreated, otherwise occupies the slot with the default texture instead. Both loaders need this: textureID is a dense index over “one texture per material slot”, so skipping a failed load would shift every later texture down one and push the last textureID past the descriptor array.samplerDesccarries the glTF sampler this texture was authored with (default-constructed for OBJ, which has no sampler concept, and for a failed load’s default stand-in texture).