Browse Source

Matrix4: Added warning to .makePerspective()

Mugen87 8 years ago
parent
commit
0364f83231
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/math/Matrix4.js

+ 6 - 0
src/math/Matrix4.js

@@ -835,6 +835,12 @@ Matrix4.prototype = {
 
 	makePerspective: function ( left, right, top, bottom, near, far ) {
 
+		if ( far === undefined ) {
+
+			console.warn( 'THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.');
+
+		}
+
 		var te = this.elements;
 		var x = 2 * near / ( right - left );
 		var y = 2 * near / ( top - bottom );