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
I know it's been 2+ years, but for anybody else:
I bet you could edit the current code by following wikipedia's guide to creating the algorithm and using the preexisting dot_prod and smootherstep functions to extend the function to include a z component
edit: specifically, here:
...using a three-dimensional approach by interpolating between 8 corners of a cube instead of the 4 corners of a square below.
I am using three.js to create dynamic geometries using this tutorial.
I tried replacing the following two lines of code
with this,
var value = perlin.get(x,y)
But it would be great if I could add a z property too
The text was updated successfully, but these errors were encountered: