Skip to content

Commit 379f853

Browse files
committed
Fixes #868
1 parent 332ebab commit 379f853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/tutorials/en/intro-to-p5-strands.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function instancingCallback() {
210210
return fract(sin(dot(seed, [12.9898, 78.233])) * 43758.5453123);
211211
}
212212
213-
function sphere() {
213+
function randomPositionOnSphere() {
214214
let id = instanceID();
215215
let theta = rand([id, 0.1234]) * TWO_PI;
216216
let phi = rand([id, 3.321]) * PI;
@@ -223,7 +223,7 @@ function sphere() {
223223
}
224224
225225
getWorldInputs((inputs) => {
226-
inputs.position += sphere();
226+
inputs.position += randomPositionOnSphere();
227227
return inputs;
228228
});
229229
}

0 commit comments

Comments
 (0)