Hermitian smoothing on perlin noise

This commit is contained in:
CJSatnarine
2024-07-09 17:31:25 -04:00
parent ba594473ed
commit b3e5adb4a2
4 changed files with 337349 additions and 337346 deletions

Binary file not shown.

674692
image.ppm

File diff suppressed because it is too large Load Diff

View File

@@ -27,6 +27,9 @@ class perlin {
auto u = p.x() - floor(p.x()); auto u = p.x() - floor(p.x());
auto v = p.y() - floor(p.y()); auto v = p.y() - floor(p.y());
auto w = p.z() - floor(p.z()); auto w = p.z() - floor(p.z());
u = u*u*(3-2*u);
v = v*v*(3-2*v);
w = w*w*(3-2*w);
auto i = int(floor(p.x())); auto i = int(floor(p.x()));
auto j = int(floor(p.y())); auto j = int(floor(p.y()));