In version 0.162.0, I set the map property to the PointsMaterial material, but there was an issue with rendering. The change was not the shape of a single point, but rather the overall shape rendering style. When I switched to rendering under version 0.137.5, it was the result I wanted. Is it because the new version has a new writing style?Here are some comparison pictures I have provided
no map
what I wanted
my code
const pointsMaterial = new THREE.PointsMaterial();
pointsMaterial.size = 0.1;
pointsMaterial.color.set(0xfff000);
// pointsMaterial.sizeAttenuation = false;
const textureLoader = new THREE.TextureLoader();
const texture = textureLoader.load("./textures/particles/1.png", event.onLoad);
pointsMaterial.map = texture;
const points = new THREE.Points(sphereGeometry, pointsMaterial);
scene.add(points);
This is not the rendering result I wanted. After switching versions, it can render normally
My texture image looks like this
So how should I code in the new version to achieve the rendering effect I want?