Skip to content

Commit 8d24cf5

Browse files
committed
Minor fixes to volumetric clouds article
1 parent 00090da commit 8d24cf5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

site/volumetric_clouds/main.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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}

src/volumetric_clouds/main.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
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.
@@ -502,7 +502,7 @@
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.
@@ -767,7 +767,7 @@
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))]

0 commit comments

Comments
 (0)