Browse Source

THREE.Legacy: Better warning for Matrix4.makeFrustum()

Mugen87 8 years ago
parent
commit
0fc5259792
2 changed files with 2 additions and 2 deletions
  1. 1 1
      docs/api/deprecated/DeprecatedList.html
  2. 1 1
      src/Three.Legacy.js

+ 1 - 1
docs/api/deprecated/DeprecatedList.html

@@ -337,7 +337,7 @@
 
 
 			Matrix4.applyToVector3Array() has been removed.<br /><br />
 			Matrix4.applyToVector3Array() has been removed.<br /><br />
 
 
-			Matrix4.makeFrustum() has been renamed to [page:Matrix4.makePerspective]().
+			Matrix4.makeFrustum() has been removed. Use [page:Matrix4.makePerspective]( left, right, top, bottom, near, far ) instead.
 		</div>
 		</div>
 
 
 
 

+ 1 - 1
src/Three.Legacy.js

@@ -469,7 +469,7 @@ Object.assign( Matrix4.prototype, {
 	},
 	},
 	makeFrustum: function( left, right, bottom, top, near, far ) {
 	makeFrustum: function( left, right, bottom, top, near, far ) {
 
 
-		console.warn( 'THREE.Matrix4: .makeFrustum() has been renamed to .makePerspective().' );
+		console.warn( 'THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead.' );
 		return this.makePerspective( left, right, top, bottom, near, far );
 		return this.makePerspective( left, right, top, bottom, near, far );
 
 
 	}
 	}