Is it possible to lad multiple svg textures/materials to a sprite in threejs?

Viewed 235

Is it possible to lad multiple svg textures to a sprite in threejs?

This is my code

var materials = [];
    var texture = map.load("../images/Defects_Icons/Placeholder.svg", function (texture) {
      materials.push(new THREE.SpriteMaterial({ map: texture, color: 16777215, fog: true }));
      var secondTextire = map.load("../images/Defects_Icons/Placeholder1.svg", function (texture) {
        materials.push(new THREE.SpriteMaterial({ map: texture, color: 16777215, fog: true }));
        var img = new THREE.Sprite(materials);
        scene.add(img)
      })
    });

0 Answers
Related