feat: Adjust grid scaling thresholds and parameters
This commit is contained in:
@@ -16,14 +16,14 @@ struct GridParams {
|
||||
|
||||
GridParams getGridParams(float distance)
|
||||
{
|
||||
if (distance > 80.0f) {
|
||||
if (distance > 500.0f) {
|
||||
return { 20.0f, 100.0f, 1000 };
|
||||
} else if (distance > 40.0f) {
|
||||
return { 10.0f, 50.0f, 500 };
|
||||
} else if (distance > 20.0f) {
|
||||
return { 5.0f, 25.0f, 250 };
|
||||
} else if (distance > 8.0f) {
|
||||
return { 1.0f, 5.0f, 50 };
|
||||
} else if (distance > 250.0f) {
|
||||
return { 10.0f, 50.0f, 1000 };
|
||||
} else if (distance > 50.0f) {
|
||||
return { 5.0f, 25.0f, 1000 };
|
||||
} else if (distance > 10.0f) {
|
||||
return { 1.0f, 5.0f, 100 };
|
||||
} else { // zoomed in
|
||||
return { 0.2f, 1.0f, 10 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user