This commit is contained in:
GiJungSUk
2026-01-07 13:50:19 +09:00
parent cd4ce5115f
commit 8b6e66819d
14 changed files with 59 additions and 27 deletions
+8 -1
View File
@@ -280,9 +280,12 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
m_pVertexPositions = new _float3[m_iNumVertices];
ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices);
#ifdef DEBUG
m_VertexTexcoords = new _float2[m_iNumVertices];
ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices);
#endif // DEBUG
for (_uint i = 0; i < m_iNumVertices; ++i)
{
@@ -303,8 +306,12 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
XMStoreFloat3(&pVertices[i].vBinormal,
XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix)));
pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV;
#ifdef DEBUG
memcpy(&m_VertexTexcoords[i], &pVertices[i].vTexcoord, sizeof(_float2));
#endif
}
D3D11_SUBRESOURCE_DATA InitialVBData{};