Skip to content

Commit 81f1bca

Browse files
authored
UniformGroups: Partially updates (mrdoob#32558)
1 parent 0eda195 commit 81f1bca

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/renderers/common/UniformsGroup.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ class UniformsGroup extends UniformBuffer {
235235
b[ offset ] = a[ offset ] = v;
236236
updated = true;
237237

238+
this.addUpdateRange( offset, 1 );
239+
238240
}
239241

240242
return updated;
@@ -265,6 +267,8 @@ class UniformsGroup extends UniformBuffer {
265267

266268
updated = true;
267269

270+
this.addUpdateRange( offset, 2 );
271+
268272
}
269273

270274
return updated;
@@ -296,6 +300,8 @@ class UniformsGroup extends UniformBuffer {
296300

297301
updated = true;
298302

303+
this.addUpdateRange( offset, 3 );
304+
299305
}
300306

301307
return updated;
@@ -328,6 +334,8 @@ class UniformsGroup extends UniformBuffer {
328334

329335
updated = true;
330336

337+
this.addUpdateRange( offset, 4 );
338+
331339
}
332340

333341
return updated;
@@ -358,6 +366,8 @@ class UniformsGroup extends UniformBuffer {
358366

359367
updated = true;
360368

369+
this.addUpdateRange( offset, 3 );
370+
361371
}
362372

363373
return updated;
@@ -396,6 +406,8 @@ class UniformsGroup extends UniformBuffer {
396406

397407
updated = true;
398408

409+
this.addUpdateRange( offset, 12 );
410+
399411
}
400412

401413
return updated;
@@ -423,6 +435,8 @@ class UniformsGroup extends UniformBuffer {
423435
setArray( a, e, offset );
424436
updated = true;
425437

438+
this.addUpdateRange( offset, 16 );
439+
426440
}
427441

428442
return updated;

0 commit comments

Comments
 (0)