Copying my post from Stack Overflow, in case more people here see it: three.js - ThreeJS - How to Improve Texture Image Resolution - Stack Overflow
I have the following JPG image that I’m trying to set as my Three JS scene.background
:
If I do:
scene.background = backgroundLoader.load(trial.imageURL);
I get a low resolution image:
Other posts (e.g. Three.js image quality blured) have suggested setting the minFilter
and magFilter
, but I find both of these offer little improvement. When I do:
texture.generateMipmaps = false;
texture.minFilter = THREE.LinearFilter;
texture.magFilter = THREE.LinearFilter;
texture.needsUpdate = true;
});
I get the following image:
How to I make the scene.background
texture have the JPG’s original resolution?