We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 332ebab commit 379f853Copy full SHA for 379f853
1 file changed
src/content/tutorials/en/intro-to-p5-strands.mdx
@@ -210,7 +210,7 @@ function instancingCallback() {
210
return fract(sin(dot(seed, [12.9898, 78.233])) * 43758.5453123);
211
}
212
213
-function sphere() {
+function randomPositionOnSphere() {
214
let id = instanceID();
215
let theta = rand([id, 0.1234]) * TWO_PI;
216
let phi = rand([id, 3.321]) * PI;
@@ -223,7 +223,7 @@ function sphere() {
223
224
225
getWorldInputs((inputs) => {
226
- inputs.position += sphere();
+ inputs.position += randomPositionOnSphere();
227
return inputs;
228
});
229
0 commit comments