浏览代码

GLTFExporter, TextureUtils: Minor fixes.

Don McCurdy 2 年之前
父节点
当前提交
4e870411bf
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      examples/jsm/exporters/GLTFExporter.js
  2. 1 1
      examples/jsm/utils/TextureUtils.js

+ 1 - 0
examples/jsm/exporters/GLTFExporter.js

@@ -20,6 +20,7 @@ import {
 	RepeatWrapping,
 	Scene,
 	Source,
+	SRGBColorSpace,
 	CompressedTexture,
 	Vector3
 } from 'three';

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

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