I have a sprite and I am attempting to make the texture repeat continuously.
Despite using what I believe are the correct settings, it doesn't seem to be working as expected. Is there something I am missing?
Here is the outcome I am seeing: https://i.sstatic.net/s1I1Y.png
This is the code I am using:
var bgTexture = new THREE.TextureLoader().load('/bg.png');
var spriteMaterial = new THREE.SpriteMaterial({ map: bgTexture });
spriteMaterial.wrapS = spriteMaterial.wrapT = THREE.RepeatWrapping;
spriteMaterial.map.offset.set( 0, 0 );
spriteMaterial.map.repeat.set( 10, 1 );
var sprite = new THREE.Sprite(spriteMaterial);
sprite.position.y = 0;
sprite.position.x = 0;
sprite.scale.x = 10;
sprite.scale.y = 1;
this.scene.add(sprite);