提交 6ee06c71 编写于 作者: G gero3

Add default to textures

上级 7835fede
......@@ -9,7 +9,7 @@ function DataTexture2DArray( data, width, height, depth ) {
Texture.call( this, null );
this.image = { data: data, width: width, height: height, depth: depth };
this.image = { data: data || null, width: width || 1, height: height || 1, depth: depth || 1 };
this.magFilter = NearestFilter;
this.minFilter = NearestFilter;
......
......@@ -17,7 +17,7 @@ function DataTexture3D( data, width, height, depth ) {
Texture.call( this, null );
this.image = { data: data, width: width, height: height, depth: depth };
this.image = { data: data || null, width: width || 1, height: height || 1, depth: depth || 1 };
this.magFilter = NearestFilter;
this.minFilter = NearestFilter;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册