mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-22 23:27:23 +01:00
fix: set color space to SRGB for loaded textures
This commit is contained in:
parent
62e27a7168
commit
8d092e235e
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue