MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / ConvertMatrix

Function ConvertMatrix

SampleFramework12/v1.00/Graphics/Model.cpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68static Float4x4 ConvertMatrix(const aiMatrix4x4& mat)
69{
70 return Float4x4(Float4(mat.a1, mat.a2, mat.a3, mat.a4),
71 Float4(mat.b1, mat.b2, mat.b3, mat.b4),
72 Float4(mat.c1, mat.c2, mat.c3, mat.c4),
73 Float4(mat.d1, mat.d2, mat.d3, mat.d4));
74}
75
76void LoadMaterialResources(Array<MeshMaterial>& materials, const wstring& directory, bool32 forceSRGB,
77 GrowableList<MaterialTexture*>& materialTextures, LinearDescriptorHeap& descriptorHeap)

Callers 1

CreateWithAssimpMethod · 0.85

Calls 2

Float4x4Class · 0.85
Float4Class · 0.70

Tested by

no test coverage detected