This commit is contained in:
2022-02-02 03:12:04 +03:00
parent cb1cebd879
commit 8590f61ba1
3 changed files with 44 additions and 2 deletions

View File

@@ -38,6 +38,9 @@ export default {
type: Object,
default: () => ({}),
},
linearFilter: {
type: Boolean,
},
},
setup(props) {
const container = ref(null);
@@ -98,7 +101,11 @@ export default {
texture.anisotropy = renderer.capabilities.getMaxAnisotropy();
const material = new THREE.MeshLambertMaterial({ map: texture });
// material.map.minFilter = THREE.LinearFilter;
if (props.linearFilter) {
material.map.minFilter = THREE.LinearFilter;
}
const screen = new THREE.Mesh(geometry, material);
const recomputeUVs = () => {