You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let geometry = new THREE.PlaneGeometry(2, 2);
let loader = new THREE.TextureLoader();
const texture = await loader.loadAsync(data);
const material = new THREE.MeshBasicMaterial({
side: THREE.DoubleSide,
map: texture,
});
texture.minFilter = THREE.LinearFilter;
texture.flipY = false;
texture.wrapS = texture.wrapT = THREE.ClampToEdgeWrapping;
let model = (this.model = new THREE.Mesh(geometry, material));
model.rotation.set(-Math.PI / 2, 0, 0);
this.scene.add(model)
The text was updated successfully, but these errors were encountered:
let geometry = new THREE.PlaneGeometry(2, 2);
let loader = new THREE.TextureLoader();
const texture = await loader.loadAsync(data);
const material = new THREE.MeshBasicMaterial({
side: THREE.DoubleSide,
map: texture,
});
this.scene.add(model)
The text was updated successfully, but these errors were encountered: