瀏覽代碼

Clean up.

Mr.doob 9 年之前
父節點
當前提交
112e4bc54e
共有 2 個文件被更改,包括 1 次插入5 次删除
  1. 0 4
      examples/js/Ocean.js
  2. 1 1
      src/textures/DataTexture.js

+ 0 - 4
examples/js/Ocean.js

@@ -12,10 +12,6 @@
 
 	this.scene = new THREE.Scene();
 
-	// Enable necessary extensions
-	this.renderer.context.getExtension( 'OES_texture_float' );
-	this.renderer.context.getExtension( 'OES_texture_float_linear' );
-
 	// Assign optional parameters as variables and object properties
 	function optionalParameter( value, defaultValue ) {
 

+ 1 - 1
src/textures/DataTexture.js

@@ -10,7 +10,7 @@ THREE.DataTexture = function ( data, width, height, format, type, mapping, wrapS
 
 	this.magFilter = magFilter !== undefined ? magFilter : THREE.NearestFilter;
 	this.minFilter = minFilter !== undefined ? minFilter : THREE.NearestFilter;
-	
+
 	this.flipY = false;
 	this.generateMipmaps  = false;