Skip to content

Commit f59c8dd

Browse files
fix: Remove comments from example
1 parent d51da85 commit f59c8dd

File tree

1 file changed

+3
-51
lines changed

1 file changed

+3
-51
lines changed

examples/fluid.html

Lines changed: 3 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,6 @@
276276
loopMaxIterations: this.PCOUNT,
277277
output: [ this.PCOUNT*3 ],
278278
pipeline: true,
279-
// argumentTypes: {
280-
// particles: 'NumberTexture',
281-
// velocities: 'NumberTexture',
282-
// attrs: 'NumberTexture',
283-
// playerPos: 'Array(3)',
284-
// pullMass: 'Number',
285-
// dt: 'Number'
286-
// }
287279
});
288280

289281
/*
@@ -303,11 +295,6 @@
303295
pipeline: true,
304296
constants: { PCOUNT: this.PCOUNT, pitch },
305297
loopMaxIterations: this.PCOUNT,
306-
// argumentTypes: {
307-
// list: 'NumberTexture',
308-
// index: 'Number',
309-
// setv: 'Array(3)'
310-
// }
311298
});
312299
};
313300

@@ -326,11 +313,6 @@
326313
output: [ this.PCOUNT*3 ],
327314
pipeline: true,
328315
loopMaxIterations: this.PCOUNT,
329-
// argumentTypes: {
330-
// particles: 'NumberTexture',
331-
// velocities: 'NumberTexture',
332-
// dt: 'Number'
333-
// }
334316
});
335317

336318
this.camRotKernel = this.gpu.createKernel(function(rotLR, rotUD, camCenter, camDir, camUp, camNearWidth, camFarWidth, camDist) {
@@ -353,16 +335,6 @@
353335
}, {
354336
debug: false,
355337
output: [ 3 ],
356-
// argumentTypes: {
357-
// rotLR: 'Number',
358-
// rotUD: 'Number',
359-
// camCenter: 'Array(3)',
360-
// camDir: 'Array(3)',
361-
// camUp: 'Array(3)',
362-
// camNearWidth: 'Number',
363-
// camFarWidth: 'Number',
364-
// camDist: 'Number'
365-
// }
366338
});
367339

368340
/*
@@ -470,16 +442,6 @@
470442
},
471443
loopMaxIterations: 48 * this.PCOUNT,
472444
output: [this.RSIZE, this.RSIZE],
473-
// argumentTypes: {
474-
// hash: 'Array',
475-
// attrs: 'NumberTexture',
476-
// camCenter: 'Array(3)',
477-
// camDir: 'Array(3)',
478-
// camUp: 'Array(3)',
479-
// camNearWidth: 'Number',
480-
// camFarWidth: 'Number',
481-
// camDist: 'Number'
482-
// }
483445
}),
484446
this.gpu.createKernel(function(positions, camCenter, camDir, camUp, camNearWidth, camFarWidth, camDist) {
485447
let uv = [this.thread.x / (this.constants.RSIZE-1), this.thread.y / (this.constants.RSIZE-1)];
@@ -654,16 +616,6 @@
654616
},
655617
loopMaxIterations: 48 * this.PCOUNT,
656618
output: [this.RSIZE, this.RSIZE],
657-
// argumentTypes: {
658-
// hash: 'Array',
659-
// attrs: 'NumberTexture',
660-
// camCenter: 'Array(3)',
661-
// camDir: 'Array(3)',
662-
// camUp: 'Array(3)',
663-
// camNearWidth: 'Number',
664-
// camFarWidth: 'Number',
665-
// camDist: 'Number'
666-
// }
667619
})
668620
];
669621

@@ -820,7 +772,7 @@
820772
return arr[this.thread.x];
821773
}, {
822774
debug: false,
823-
outputToTexture: false,
775+
pipeline: false,
824776
output: [this.PCOUNT * 3]
825777
});
826778

@@ -1076,7 +1028,7 @@
10761028
this.cam.dir.y = ret[1];
10771029
this.cam.dir.z = ret[2];
10781030

1079-
dlen = Math.sqrt(this.cam.dir.x*this.cam.dir.x + this.cam.dir.y*this.cam.dir.y + this.cam.dir.z*this.cam.dir.z);
1031+
var dlen = Math.sqrt(this.cam.dir.x*this.cam.dir.x + this.cam.dir.y*this.cam.dir.y + this.cam.dir.z*this.cam.dir.z);
10801032
this.cam.p.x += (this.cam.dir.x/dlen) * this.move.tFR * dt * 6;
10811033
this.cam.p.y += (this.cam.dir.y/dlen) * this.move.tFR * dt * 6;
10821034
this.cam.p.z += (this.cam.dir.z/dlen) * this.move.tFR * dt * 6;
@@ -1313,7 +1265,7 @@
13131265
out[1] = a[1] / length;
13141266
out[2] = a[2] / length;
13151267
return out;
1316-
}
1268+
};
13171269

13181270
/**
13191271
* Basis quaternions, for your convenience.

0 commit comments

Comments
 (0)