Closed pbsmart closed 1 year ago
I found that after changing the texture, batch needs to call rebuildMaterial again
ParticleSystem.prototype.updateMaterial = function () {
const po = this._renderer.systemToBatchIndex.get(this);
if (po !== undefined) {
this._renderer.batches[po].rebuildMaterial();
} else {
console.log(" no find batch" + this);
}
};
This solved my problem,Hope to be helpful to those who encounter the same problems as others
The above dynamic modify texture is not effective, Version is 0.10.2 ,Where I do wrong?