mirror of
https://github.com/overte-org/overte.git
synced 2025-04-24 21:55:53 +02:00
Offset adjustment.
This commit is contained in:
parent
f435f61467
commit
674bc70223
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ void MetavoxelEditor::createNewAttribute() {
|
|||
}
|
||||
|
||||
void MetavoxelEditor::centerGridPosition() {
|
||||
const float CENTER_OFFSET = 0.5f;
|
||||
const float CENTER_OFFSET = 0.625f;
|
||||
float eyePosition = (glm::inverse(getGridRotation()) * Application::getInstance()->getCamera()->getPosition()).z -
|
||||
Application::getInstance()->getAvatar()->getScale() * CENTER_OFFSET;
|
||||
double step = getGridSpacing();
|
||||
|
|
Loading…
Reference in a new issue