Fix texture orientation. Add AO. Fix fog transition in sky

This commit is contained in:
bmathews 2025-11-14 03:10:26 -08:00
parent 75750571de
commit 8ab6f63fee
10 changed files with 218 additions and 30 deletions

View file

@ -13,6 +13,7 @@ export function setupColor(tex, repeat = [1, 1]) {
tex.wrapS = tex.wrapT = RepeatWrapping;
tex.colorSpace = SRGBColorSpace;
tex.repeat.set(...repeat);
tex.flipY = false; // DDS/DIF textures are already flipped
tex.anisotropy = 16;
tex.generateMipmaps = true;
tex.minFilter = LinearMipmapLinearFilter;