Added more models

Fixed issue with material only parts of meshs not being rendered
This commit is contained in:
iDunnoDev
2022-05-14 20:13:55 +01:00
committed by iDunnoDev
parent b856b43209
commit 03329d30ce
35 changed files with 178 additions and 43 deletions

View File

@ -531,7 +531,7 @@ void TerrainNode::PopulateTerrain(SceneGraphPointer currentSceneGraph, vector<Te
float scale = (rand() % 100 * 0.01f) * nodesForPop[nodeIndex].scaleFactor;
float xPos = x * _cellSizeX + _terrainStartX;
float yPos = heightValue - 1.0f;
float yPos = heightValue;
float zPos = (-z + 1) * _cellSizeZ + _terrainStartZ;
wstring nodeName = L"_" + to_wstring(z) + L"_" + to_wstring(x);