mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 06:46:19 +02:00
Better radius.
This commit is contained in:
parent
083e9076a9
commit
597d750af9
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ void Application::paintGL() {
|
|||
// if the head would intersect the near clip plane, we must push the camera out
|
||||
glm::vec3 relativePosition = glm::inverse(_myCamera.getTargetRotation()) *
|
||||
(eyePosition - _myCamera.getTargetPosition());
|
||||
const float PUSHBACK_RADIUS = 0.01f;
|
||||
const float PUSHBACK_RADIUS = 0.2f;
|
||||
float pushback = relativePosition.z + _myCamera.getNearClip() +
|
||||
_myAvatar->getScale() * PUSHBACK_RADIUS - _myCamera.getDistance();
|
||||
if (pushback > 0.0f) {
|
||||
|
|
Loading…
Reference in a new issue