mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
adjust RENDER_HEAD_CUTOFF_DISTANCE so that I don't see my head when I run
This commit is contained in:
parent
f6fed444b0
commit
f1c03b2d40
1 changed files with 1 additions and 1 deletions
|
@ -1929,7 +1929,7 @@ void MyAvatar::preDisplaySide(RenderArgs* renderArgs) {
|
|||
_prevShouldDrawHead = shouldDrawHead;
|
||||
}
|
||||
|
||||
const float RENDER_HEAD_CUTOFF_DISTANCE = 0.3f;
|
||||
const float RENDER_HEAD_CUTOFF_DISTANCE = 0.47;
|
||||
|
||||
bool MyAvatar::cameraInsideHead(const glm::vec3& cameraPosition) const {
|
||||
return glm::length(cameraPosition - getHeadPosition()) < (RENDER_HEAD_CUTOFF_DISTANCE * getModelScale());
|
||||
|
|
Loading…
Reference in a new issue