mercredi 22 février 2017

Three.js: How to apply a texture correctly?

When applying the texture top and bottom forms ugly folds:

enter image description here

        var geometry = new THREE.SphereGeometry(50, 50, 50, 0, Math.PI * 2, 0, Math.PI * 2);
        var load = new THREE.TextureLoader().load("e.jpg");
        load.anisotropy = 8;
        var material = new THREE.MeshBasicMaterial({
            map: load,
            overdraw: true
        });
        sphere = new THREE.Mesh(geometry, material);
        scene.add(sphere);

How to do it correctly?




Aucun commentaire:

Enregistrer un commentaire