是否可以在threejs中将多个svg纹理/材质贴到一个精灵上?

时间:2019-06-23 07:03:34

标签: javascript three.js textures sprite material

是否可以在threejs中将多个svg纹理叠加到一个精灵上?

这是我的代码

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 个答案:

没有答案