git.s-ol.nu ~forks/DiligentTools / dd64b2c
Update GLTF loader; fixed warning in KTX loader Egor Yusov 2 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
121121
122122 float4x4 Node::LocalMatrix()const
123123 {
124 return Matrix * float4x4::Scale(Scale) * Rotation.ToMatrix() * float4x4::TranslationD3D(Translation);
124 return Matrix * float4x4::Scale(Scale) * Rotation.ToMatrix() * float4x4::Translation(Translation);
125125 }
126126
127127 float4x4 Node::GetMatrix()const
264264 pData += Align(MipInfo.MipSize, 4u);
265265 }
266266 }
267 VERIFY(pData - reinterpret_cast<const Uint8*>(pKTXData->GetDataPtr()) == DataSize, "Unexpected data size");
267 VERIFY(pData - reinterpret_cast<const Uint8*>(pKTXData->GetDataPtr()) == static_cast<ptrdiff_t>(DataSize), "Unexpected data size");
268268
269269 TextureData InitData(SubresData.data(), static_cast<Uint32>(SubresData.size()));
270270 pDevice->CreateTexture(TexDesc, &InitData, ppTexture);