mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
change mesh mode particle uv calc (#4843)
This commit is contained in:
@@ -413,6 +413,9 @@ export class ParticleSystemComponent extends RenderableComponent {
|
||||
r._model.destroy();
|
||||
r._model = null;
|
||||
r.onEnable();
|
||||
r._updateModel();
|
||||
r._updateMaterialParams();
|
||||
r._updateTrailMaterial();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ export default class ParticleBatchModel extends Model {
|
||||
offset += 2;
|
||||
// this._vdataF32![offset++] = index;
|
||||
// this._vdataF32![offset++] = pvdata[1].y;
|
||||
this._vdataF32![offset++] = index;
|
||||
this._vdataF32![offset++] = pvdata[1].z;
|
||||
this._vdataF32![offset++] = pvdata[2].x;
|
||||
this._vdataF32![offset++] = pvdata[2].y;
|
||||
this._vdataUint32![offset++] = pvdata[3];
|
||||
|
||||
Reference in New Issue
Block a user