File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ This is achieved by determining the distance to each random point in all neighbo
481481:::
482482
483483
484- Here a 256x256 Worley noise tensor is created.
484+ Here a 256 × 256 Worley noise tensor is created.
485485
486486
487487::: {.sourceClojure}
@@ -1002,7 +1002,7 @@ Now one can sample the Perlin noise by performing above computation for the cent
10021002:::
10031003
10041004
1005- Here a 256x256 Perlin noise tensor is created.
1005+ Here a 256 × 256 Perlin noise tensor is created.
10061006
10071007
10081008::: {.sourceClojure}
@@ -1682,7 +1682,7 @@ We define a method to convert a Java buffer object to a floating point array.
16821682:::
16831683
16841684
1685- The following method reads texture data into a Java buffer and then converts it to a floating point array.
1685+ The following method copies texture data into a Java buffer and then converts it to a floating point array.
16861686
16871687
16881688::: {.sourceClojure}
Original file line number Diff line number Diff line change 260260 (apply wrap-get random-points neighbour))))))
261261 :double ))))
262262
263- ; ; Here a 256x256 Worley noise tensor is created.
263+ ; ; Here a 256 × 256 Worley noise tensor is created.
264264(def worley (worley-noise (make-noise-params 256 8 2 )))
265265
266266; ; The values are inverted and normalised to be between 0 and 255.
502502 (perlin-sample params gradients center)))
503503 :double ))))
504504
505- ; ; Here a 256x256 Perlin noise tensor is created.
505+ ; ; Here a 256 × 256 Perlin noise tensor is created.
506506(def perlin (perlin-noise (make-noise-params 256 8 2 )))
507507
508508; ; The values are normalised to be between 0 and 255.
767767 (.flip buffer)
768768 result))
769769
770- ; ; The following method reads texture data into a Java buffer and then converts it to a floating point array.
770+ ; ; The following method copies texture data into a Java buffer and then converts it to a floating point array.
771771(defn read-texture-2d
772772 [texture width height]
773773 (let [buffer (BufferUtils/createFloatBuffer (* height width 4 ))]
You can’t perform that action at this time.
0 commit comments