Make noise generation resolution aware (#1909)

* Make noise generation resolution aware

* Invert "Scale" so it's not "Frequency"; make "Clipping" 100x100 not 1x1

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Dennis Kobert 2024-08-09 12:03:06 +02:00 committed by GitHub
parent 0dfddd529b
commit c5dde18fd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 67 additions and 81 deletions

View file

@ -168,9 +168,7 @@ impl Footprint {
}
pub fn scale(&self) -> DVec2 {
let x = self.transform.transform_vector2((1., 0.).into()).length();
let y = self.transform.transform_vector2((0., 1.).into()).length();
DVec2::new(x, y)
self.transform.decompose_scale()
}
pub fn offset(&self) -> DVec2 {