update space view according to main ViewFrustum

This commit is contained in:
Andrew Meadows 2018-02-22 12:04:25 -08:00
parent b512f7e1ba
commit 1e71e819f4

View file

@ -4169,6 +4169,14 @@ void Application::idle() {
}
{
// TEMP HACK: one view with static radiuses
float r0 = 10.0f;
float r1 = 20.0f;
float r2 = 30.0f;
workload::Space::View view(_viewFrustum.getPosition(), r0, r1, r2);
std::vector<workload::Space::View> views;
views.push_back(view);
getEntities()->getWorkloadSpace()->setViews(views);
_gameWorkload._engine->run();
}
{