Explorar el Código

Colorspace decode fix for ScreenPass

master
Palash Bansal hace 1 año
padre
commit
fc590d9ffe
No account linked to committer's email address
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/three/utils/encoding.ts

+ 2
- 2
src/three/utils/encoding.ts Ver fichero

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


Cargando…
Cancelar
Guardar