Skip to content

Commit

Permalink
GLTFExporter, TextureUtils: Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed May 24, 2023
1 parent c31806c commit 4e87041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/jsm/exporters/GLTFExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
RepeatWrapping,
Scene,
Source,
SRGBColorSpace,
CompressedTexture,
Vector3
} from 'three';
Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/utils/TextureUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let fullscreenQuadGeometry;
let fullscreenQuadMaterial;
let fullscreenQuad;

export function decompress( texture, maxTextureSize, renderer = null ) {
export function decompress( texture, maxTextureSize = Infinity, renderer = null ) {

if ( ! fullscreenQuadGeometry ) fullscreenQuadGeometry = new PlaneGeometry( 2, 2, 1, 1 );
if ( ! fullscreenQuadMaterial ) fullscreenQuadMaterial = new ShaderMaterial( {
Expand Down

0 comments on commit 4e87041

Please sign in to comment.