mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 14:22:06 +02:00
larger threshold btw 1 vs 2 workload views for 3rd person
This commit is contained in:
parent
317f4d28ba
commit
cfec94f3ff
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ void SetupViews::run(const WorkloadContextPointer& renderContext, const Input& i
|
|||
outViews.insert(outViews.end(), _views.begin() + 2, _views.end());
|
||||
} else {
|
||||
// otherwise we use all of the views...
|
||||
const float MIN_HEAD_CAMERA_SEPARATION_SQUARED = 0.2f;
|
||||
const float MIN_HEAD_CAMERA_SEPARATION_SQUARED = MIN_VIEW_BACK_FRONTS[0][1] * MIN_VIEW_BACK_FRONTS[0][1];
|
||||
if (glm::distance2(_views[0].origin, _views[1].origin) < MIN_HEAD_CAMERA_SEPARATION_SQUARED) {
|
||||
// ... unless the first two are close enough to be considered the same
|
||||
// in which case we only keep one of them
|
||||
|
|
Loading…
Reference in a new issue