You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In listing 29, function noise(), we first calculate u, v and w from p.x, p.y and p.z but then do nothing with them.
doublenoise(const point3& p) const {
auto u = p.x() - floor(p.x());
auto v = p.y() - floor(p.y());
auto w = p.z() - floor(p.z());
auto i = static_cast<int>(4*p.x()) & 255;
auto j = static_cast<int>(4*p.y()) & 255;
auto k = static_cast<int>(4*p.z()) & 255;
return ranfloat[perm_x[i] ^ perm_y[j] ^ perm_z[k]];
}
The text was updated successfully, but these errors were encountered:
In listing 29, function
noise()
, we first calculateu
,v
andw
fromp.x
,p.y
andp.z
but then do nothing with them.The text was updated successfully, but these errors were encountered: