|
@@ -1695,13 +1695,8 @@
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
- if (this.forceDepthWrite) {
|
|
|
|
- engine.setDepthWrite(true);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (this._useInstancing) {
|
|
if (this._useInstancing) {
|
|
engine.drawArraysType(Material.TriangleFanDrawMode, 0, 4, this._particles.length);
|
|
engine.drawArraysType(Material.TriangleFanDrawMode, 0, 4, this._particles.length);
|
|
-
|
|
|
|
} else {
|
|
} else {
|
|
engine.drawElementsType(Material.TriangleFillMode, 0, this._particles.length * 6);
|
|
engine.drawElementsType(Material.TriangleFillMode, 0, this._particles.length * 6);
|
|
}
|
|
}
|
|
@@ -1722,6 +1717,10 @@
|
|
var engine = this._scene.getEngine();
|
|
var engine = this._scene.getEngine();
|
|
engine.setState(false);
|
|
engine.setState(false);
|
|
|
|
|
|
|
|
+ if (this.forceDepthWrite) {
|
|
|
|
+ engine.setDepthWrite(true);
|
|
|
|
+ }
|
|
|
|
+
|
|
let outparticles = 0;
|
|
let outparticles = 0;
|
|
|
|
|
|
if (this.blendMode === ParticleSystem.BLENDMODE_MULTIPLYADD) {
|
|
if (this.blendMode === ParticleSystem.BLENDMODE_MULTIPLYADD) {
|