mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 04:57:15 +00:00
Applied some C#12 stuff
This commit is contained in:
1 parent
0444730aca
commit
d85f1559b3
105 files changed
+329
-422
No files matched your search
@@ -172,7 +172,7 @@ public static class SimplexNoise
|
||||
|
||||
// Add contributions from each corner to get the final noise value.
|
||||
// The result is scaled to return values in the interval [-1,1].
|
||||
return 40.0f * (n0 + n1 + n2); // TODO: The scale factor is preliminary!
|
||||
return 40.0f * (n0 + n1 + n2);
|
||||
}
|
||||
|
||||
|
||||
@@ -276,7 +276,7 @@ public static class SimplexNoise
|
||||
|
||||
// Add contributions from each corner to get the final noise value.
|
||||
// The result is scaled to stay just inside [-1,1]
|
||||
return 32.0f * (n0 + n1 + n2 + n3); // TODO: The scale factor is preliminary!
|
||||
return 32.0f * (n0 + n1 + n2 + n3);
|
||||
}
|
||||
|
||||
private static byte[] _perm;
|
||||
|
||||
Reference in new issue
Block a user