Having trouble with the exhaust. It is PointsMaterial. Here is with depthWrite true/false. Both equally glitching. Any suggestions?
var material2 = new THREE.PointsMaterial({
color: 0xffffff,
size: 1,
sizeAttenuation: true,
map: this.jetray_particles.sprite,
alphaTest: this.jetray_particles.transparency_threshold,
transparent: true,
opacity: this.jetray_particles.opacity,
blending: THREE.NormalBlending,
depthWrite: true,
depthTest: true,
});
//material2.color.setHSL(1.0, 1.0, 1.0);
this.jetray_particles.meshes.right.getWorldPosition(pos2);
var px = pos2.x;
var py = pos2.y;
var pz = pos2.z;
vertices2.push(px, py, pz);
geometry2.setAttribute("position", new THREE.Float32BufferAttribute(vertices2, 3));
var particle2 = new THREE.Points(geometry2, material2);