소스 검색

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();
 	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
 	// Assign optional parameters as variables and object properties
 	function optionalParameter( value, defaultValue ) {
 	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.magFilter = magFilter !== undefined ? magFilter : THREE.NearestFilter;
 	this.minFilter = minFilter !== undefined ? minFilter : THREE.NearestFilter;
 	this.minFilter = minFilter !== undefined ? minFilter : THREE.NearestFilter;
-	
+
 	this.flipY = false;
 	this.flipY = false;
 	this.generateMipmaps  = false;
 	this.generateMipmaps  = false;