Example #1
0
void fillLightsGrid(std::vector<PointLight> &lights, Window &window)
{
	lights.clear();
	for(int x = 0; x < 8; ++x)
		for(int y = 0; y < 8; ++y)
			for(int z = 0; z < 8; ++z)
				lights.push_back(PointLight(window.GetGraphicsDevice().getRenderer3D(), Vector3(-1280.0f + (340.0f * x), 40.0f + (340.0f * y), -1280.0f + (340.0f * z)), Vector3(0.5f, 0.5f, 0.5f), 10, 510));
}