larger threshold btw 1 vs 2 workload views for 3rd person

This commit is contained in:
Andrew Meadows 2018-11-01 09:28:31 -07:00
parent 317f4d28ba
commit cfec94f3ff

View file

@ -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