Bläddra i källkod

Colorspace decode fix for ScreenPass

master
Palash Bansal 1 år sedan
förälder
incheckning
fc590d9ffe
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      src/three/utils/encoding.ts

+ 2
- 2
src/three/utils/encoding.ts Visa fil

@@ -43,9 +43,9 @@ export function getTextureColorSpaceFromMap(map: Texture | WebGLRenderTarget | n

let colorSpace

if (map && (<Texture>map).isTexture) {
if (map && (<Texture>map).colorSpace !== undefined) {

colorSpace = (<Texture>map).colorSpace
colorSpace = (<Texture>map).colorSpace || NoColorSpace

} else if (map && (<WebGLRenderTarget>map).isWebGLRenderTarget) {


Laddar…
Avbryt
Spara