fix: guess offset
This commit is contained in:
parent
0c336d77e4
commit
217b4abe99
1 changed files with 2 additions and 2 deletions
|
|
@ -1777,9 +1777,9 @@ impl AlphaMap {
|
|||
let default_low = Self::default().extremely_low;
|
||||
let default_high = Self::default().extremely_high_2;
|
||||
if *extremely_low > default_low {
|
||||
(*extremely_low - default_low) / (1.0 - default_low)
|
||||
0.5 * (*extremely_low - default_low) / (1.0 - default_low) + 0.5
|
||||
} else if *extremely_high_2 < default_high {
|
||||
(default_high - *extremely_high_2) / default_high
|
||||
0.5 - (0.5 * (default_high - *extremely_high_2) / default_high)
|
||||
} else {
|
||||
0.5
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue