From cdf3dd9fb84f4b3fed4743723d047a2c902e2e58 Mon Sep 17 00:00:00 2001 From: CatChow0 Date: Wed, 3 Apr 2024 11:52:47 +0200 Subject: [PATCH] Render terrain ok --- enginecustom/applicationclass.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/enginecustom/applicationclass.cpp b/enginecustom/applicationclass.cpp index 63615b9..16cc6b9 100644 --- a/enginecustom/applicationclass.cpp +++ b/enginecustom/applicationclass.cpp @@ -709,9 +709,10 @@ void ApplicationClass::GenerateTerrain() Object* newTerrain = new Object(); newTerrain->Initialize(m_Direct3D->GetDevice(), m_Direct3D->GetDeviceContext(), modelFilename, textureFilename, textureFilename2); - newTerrain->SetTranslateMatrix(XMMatrixTranslation(i * 10.0f, -5.0f, j * 10.0f)); + newTerrain->SetTranslateMatrix(XMMatrixTranslation(i*10, -5.0f, j*10)); m_terrainChunk.push_back(newTerrain); + } }