Browse Source

WebGLState: Set emptyTextures min/mag to Nearest. See ae81860411fb397e5905b8282eb497351a61121b.

Mr.doob 9 years ago
parent
commit
2a5b0a7faf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/renderers/webgl/WebGLState.js

+ 2 - 1
src/renderers/webgl/WebGLState.js

@@ -67,7 +67,8 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
 		var texture = gl.createTexture();
 
 		gl.bindTexture( type, texture );
-		gl.texParameteri( type, gl.TEXTURE_MIN_FILTER, gl.LINEAR );
+		gl.texParameteri( type, gl.TEXTURE_MIN_FILTER, gl.NEAREST );
+		gl.texParameteri( type, gl.TEXTURE_MAG_FILTER, gl.NEAREST );
 
 		for ( var i = 0; i < count; i ++ ) {