internal void BuildRenderList(RenderList renderList, CameraComponent camera) { if (ShowTerrain) { Terrain?.BuildRenderList(renderList); } if (ShowRoads) { foreach (var road in Roads) { road.BuildRenderList(renderList); } } if (ShowObjects) { foreach (var gameObject in GameObjects.Items) { gameObject.BuildRenderList(renderList, camera); } } _particleSystemManager.BuildRenderList(renderList); }
internal void BuildRenderList(RenderList renderList, CameraComponent camera) { Terrain?.BuildRenderList(renderList); foreach (var gameObject in GameObjects.Items) { gameObject.BuildRenderList(renderList, camera); } _particleSystemManager.BuildRenderList(renderList); }
internal void BuildRenderList(RenderList renderList, Camera camera) { if (ShowTerrain) { Terrain?.BuildRenderList(renderList); } if (ShowWater) { foreach (var waterArea in WaterAreas) { waterArea.BuildRenderList(renderList, Lighting.TimeOfDay); } } if (ShowRoads) { foreach (var road in Roads) { road.BuildRenderList(renderList); } } if (ShowBridges) { foreach (var bridge in Bridges) { bridge.BuildRenderList(renderList, camera); } } if (ShowObjects) { foreach (var gameObject in GameObjects.Items) { gameObject.BuildRenderList(renderList, camera); } } _particleSystemManager.BuildRenderList(renderList); }