Просмотр исходного кода

TextureUtils: Remove deprecated code. (#28996)

Michael Herzog 1 год назад
Родитель
Сommit
d906b2568a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      examples/jsm/utils/TextureUtils.js

+ 1 - 1
examples/jsm/utils/TextureUtils.js

@@ -34,7 +34,7 @@ export function decompress( texture, maxTextureSize = Infinity, renderer = null
 				gl_FragColor = vec4(vUv.xy, 0, 1);
 				
 				#ifdef IS_SRGB
-				gl_FragColor = LinearTosRGB( texture2D( blitTexture, vUv) );
+				gl_FragColor = sRGBTransferOETF( texture2D( blitTexture, vUv) );
 				#else
 				gl_FragColor = texture2D( blitTexture, vUv);
 				#endif

粤ICP备19079148号