mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
minor name change for more clarity
This commit is contained in:
parent
a28d185afc
commit
883b83ec59
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ View View::evalFromFrustum(const ViewFrustum& frustum, const glm::vec3& offset)
|
|||
|
||||
Sphere View::evalRegionSphere(const View& view, float originRadius, float maxDistance) {
|
||||
float radius = (maxDistance + originRadius) / 2.0f;
|
||||
float center = radius - originRadius;
|
||||
return Sphere(view.origin + view.direction * center, radius);
|
||||
float distanceToCenter = radius - originRadius;
|
||||
return Sphere(view.origin + view.direction * distanceToCenter, radius);
|
||||
}
|
||||
|
||||
void View::updateRegionsDefault(View& view) {
|
||||
|
|
Loading…
Reference in a new issue