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
Copy file name to clipboardexpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,7 @@ To get started, include the minified javascript in your a-frame project.
26
26
27
27
# Usage
28
28
29
-
Every low-poly object supports the following attributes:
30
-
31
-
**`position-function: function(x, y, z)`**
32
-
33
-
Function that accepts the vertex's *original position* and outputs the vertex's new position, or *root position*. This is applied *before* customizable randomization. All random perturbations are applied to the vertex's root position.
29
+
Every low-poly object supports the following attributes. Modify the following attributes just like you would any other AFrame VR attribute:
@@ -42,6 +38,10 @@ Maximum and minimum amount of perturbation allowed for each vertex. The vertex w
42
38
43
39
Seed for random-number generator, allowing you to fix randomness during design
44
40
41
+
**`position-function: function({x, y, z, min: {x, y, z}, max: {x, y, z}})`**
42
+
43
+
Function that accepts the vertex's *original position* and outputs the vertex's new position, or *root position*. This is applied *before* customizable randomization. All random perturbations are applied to the vertex's root position.
0 commit comments