mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
revert (#9668)
This commit is contained in:
@@ -308,13 +308,8 @@ export default class ParticleBatchModel extends scene.Model {
|
||||
}
|
||||
|
||||
public updateIA (count: number) {
|
||||
if (count <= 0) {
|
||||
return;
|
||||
}
|
||||
const ia = this._subModels[0].inputAssembler;
|
||||
const byteLength = this._vertAttrsFloatCount * this._vertCount;
|
||||
ia.vertexBuffers[0].update(this._vdataF32!, count * byteLength * 4);
|
||||
// ia.vertexBuffers[0].update(this._vdataF32!);
|
||||
ia.vertexBuffers[0].update(this._vdataF32!);
|
||||
this._iaInfo.drawInfos[0].firstIndex = 0;
|
||||
this._iaInfo.drawInfos[0].indexCount = this._indexCount * count;
|
||||
this._iaInfoBuffer!.update(this._iaInfo);
|
||||
|
||||
Reference in New Issue
Block a user