Browse Source

Colorspace decode fix for ScreenPass

master
Palash Bansal 1 year ago
parent
commit
fc590d9ffe
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/three/utils/encoding.ts

+ 2
- 2
src/three/utils/encoding.ts View File

@@ -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) {


Loading…
Cancel
Save