Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Nov 24, 2022
1 parent dc59c08 commit a569d79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jsm/utils/TextureUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function decompress( texture, maxTextureSize, renderer ) {
void main(){
gl_FragColor = vec4(vUv.xy, 0, 1);
#ifdef IS_SRGB
gl_FragColor = conv_LinearTosRGB( texture2D( blitTexture, vUv) );
#else
Expand All @@ -47,6 +48,7 @@ function decompress( texture, maxTextureSize, renderer ) {

fullscreenQuadMaterial.uniforms.blitTexture.value = texture;
fullscreenQuadMaterial.defines.IS_SRGB = texture.encoding == sRGBEncoding;
fullscreenQuadMaterial.needsUpdate = true;

if ( !fullscreenQuad ) {

Expand Down Expand Up @@ -74,8 +76,6 @@ function decompress( texture, maxTextureSize, renderer ) {

const readableTexture = new Texture( renderer.domElement );
readableTexture.userData.mimeType = 'image/png';
console.log(readableTexture, readableTexture.image)

return readableTexture;

}
Expand Down

0 comments on commit a569d79

Please sign in to comment.