File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
225225getWorldInputs((inputs) => {
226- inputs.position += sphere ();
226+ inputs.position += randomPositionOnSphere ();
227227 return inputs;
228228 });
229229}
@@ -282,7 +282,7 @@ function instancingCallback() {
282282 return fract(sin(dot(seed, [12.9898, 78.233])) * 43758.5453123);
283283 }
284284
285- function sphere () {
285+ function getAnimatedSpherePosition () {
286286 let id = instanceID();
287287 let theta = rand([id, 0.1234]) * TWO_PI;
288288 // change the particle's position over time:
@@ -298,7 +298,7 @@ function sphere() {
298298}
299299
300300getWorldInputs((inputs) => {
301- inputs.position += sphere ();
301+ inputs.position += getAnimatedSpherePosition ();
302302 return inputs;
303303});
304304}
You can’t perform that action at this time.
0 commit comments