mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
limit ingame element size
Former-commit-id: b60e297096ad354cae77482fe84aca88bb9a8f3e
This commit is contained in:
parent
c41fc026a8
commit
061ab9f45e
@ -573,7 +573,15 @@ impl Ui {
|
||||
/ 10.0)
|
||||
.min(1.6)
|
||||
.max(0.2);
|
||||
Placement::InWorld(parameters.num, Some(parameters.res))
|
||||
|
||||
// Scale down ingame elements that are close to the camera
|
||||
let res = if scale_factor > 3.2 {
|
||||
parameters.res * scale_factor as f32 / 3.2
|
||||
} else {
|
||||
parameters.res
|
||||
};
|
||||
|
||||
Placement::InWorld(parameters.num, Some(res))
|
||||
} else {
|
||||
Placement::InWorld(parameters.num, None)
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user