change mesh mode particle uv calc (#4843)

This commit is contained in:
zxg0622
2019-07-09 15:23:18 +08:00
committed by Weiliang Wang
parent 2321d6f98d
commit 86b4b87e6c
2 changed files with 4 additions and 1 deletions
@@ -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];