| 723 | } |
| 724 | |
| 725 | static PbrMetallicRoughness* LoadPbrMetallicRoughness(cgltf_pbr_metallic_roughness* in, PbrMetallicRoughness* out, dmHashTable64<void*>* cache) |
| 726 | { |
| 727 | LoadTextureView(&in->base_color_texture, &out->m_BaseColorTexture, cache); |
| 728 | LoadTextureView(&in->metallic_roughness_texture, &out->m_MetallicRoughnessTexture, cache); |
| 729 | |
| 730 | CopyArray(in->base_color_factor, out->m_BaseColorFactor); |
| 731 | |
| 732 | out->m_MetallicFactor = in->metallic_factor; |
| 733 | out->m_RoughnessFactor = in->roughness_factor; |
| 734 | return out; |
| 735 | } |
| 736 | |
| 737 | static PbrSpecularGlossiness* LoadPbrSpecularGlossiness(cgltf_pbr_specular_glossiness* in, PbrSpecularGlossiness* out, dmHashTable64<void*>* cache) |
| 738 | { |
nothing calls this directly
no test coverage detected