mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
update space view according to main ViewFrustum
This commit is contained in:
parent
b512f7e1ba
commit
1e71e819f4
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue