public override void Initialize() { for (int row = 0; row < _terrain.PatchRows; row++) { for (int col = 0; col < _terrain.PatchColumns; col++) { TerrainPatch patch = _terrain.Patches[row * _terrain.PatchColumns + col]; PopulatePatch(_treePositions, patch); } } // _treePositions.Add(Vector3.Zero); _tree = new SunlitLTree(_game, _cameraProvider, _sky, Vector3.Zero); _tree.Initialize(); base.Initialize(); }
public override void Initialize() { for (int row = 0; row < _terrain.PatchRows; row++) { for (int col = 0; col < _terrain.PatchColumns; col++) { TerrainPatch patch = _terrain.Patches[row*_terrain.PatchColumns + col]; PopulatePatch(_treePositions, patch); } } // _treePositions.Add(Vector3.Zero); _tree = new SunlitLTree(_game, _cameraProvider, _sky, Vector3.Zero); _tree.Initialize(); base.Initialize(); }