fix: set color space to SRGB for loaded textures

This commit is contained in:
Azgaar 2026-03-09 04:49:43 +01:00
parent 62e27a7168
commit 8d092e235e

View file

@ -139,6 +139,7 @@ function loadTexture(set: string): Promise<any> {
`images/relief/${set}.png`,
texture => {
texture.flipY = false;
texture.colorSpace = THREE.SRGBColorSpace;
texture.needsUpdate = true;
texture.minFilter = THREE.LinearMipmapLinearFilter;
texture.magFilter = THREE.LinearFilter;