Skip to content

Commit 96b4556

Browse files
Fix blue trail (#469)
1 parent 1e3c2d3 commit 96b4556

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sample/particles/main.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ const simulationParams = {
327327
const simulationUBOBufferSize =
328328
1 * 4 + // deltaTime
329329
1 * 4 + // brightnessFactor
330-
3 * 4 + // padding
330+
2 * 4 + // padding
331331
4 * 4 + // seed
332332
0;
333333
const simulationUBOBuffer = device.createBuffer({
@@ -411,7 +411,6 @@ function frame() {
411411
simulationParams.simulate ? simulationParams.deltaTime : 0.0,
412412
simulationParams.brightnessFactor,
413413
0.0,
414-
0.0,
415414
0.0, // padding
416415
Math.random() * 100,
417416
Math.random() * 100, // seed.xy

0 commit comments

Comments
 (0)