Fix various typos (#6332)

* Fix various typos

Found via `codespell -q 3 -S ./rtdata/languages -L ba,bord,childs,hist,fo,reall,bloc,alph,dof,inout,thre,makro,chang,currentry,preserv,portugues,struc,trough,vektor`

* Fix source typo

* Added requested revisions
This commit is contained in:
luzpaz
2021-08-13 08:37:29 -04:00
committed by GitHub
parent 1c4e1216d2
commit 22f89bc752
16 changed files with 27 additions and 27 deletions

View File

@@ -128,7 +128,7 @@ public:
for (int i = 0; i < W; ++i) {
double wx = ox + i;
double x = wx / wddf;
double noise = simplex_2d_noise(x, y, octaves, 1.0, zoom) / s;
double noise = simplex_2d_noise(x, y, octaves, zoom) / s;
lab_L[j][i] += lut_lookup(noise * strength * GRAIN_LIGHTNESS_STRENGTH_SCALE, lab_L[j][i] / 32768.f);
}
}
@@ -290,7 +290,7 @@ private:
return 32.0 * (n0 + n1 + n2 + n3);
}
double simplex_2d_noise(double x, double y, uint32_t octaves, double persistance, double z)
double simplex_2d_noise(double x, double y, uint32_t octaves, double z)
{
double total = 0;