Have -
const texture = loader.load('../assets/img/checker.png');
I want to change the image.
In documentation have .image but it not works
texture.image ='../assets/img/starts.png';
second option also doesn’t work
let sprite = new THREE.TextureLoader().load('../assets/img/starts.png');
let sprite1 = new THREE.TextureLoader().load('../assets/img/checker.png');
const material = new THREE.PointsMaterial({
color:0xaaaaaa,
size:0.7,
map:sprite
})
material.parameters.map = sprite1;
help me please get access to change the image