diff --git a/src/Three.Legacy.js b/src/Three.Legacy.js index 42fdfcfa8212e04f056ea063d580377844cc575d..7a4bb5523083a580f7aed93289ccd666d59c049a 100644 --- a/src/Three.Legacy.js +++ b/src/Three.Legacy.js @@ -322,7 +322,7 @@ GridHelper.prototype.setColors = function () { SkeletonHelper.prototype.update = function () { console.error( 'THREE.SkeletonHelper: update() no longer needs to be called.' ); - + }; export function WireframeHelper( object, hex ) { @@ -1101,6 +1101,20 @@ Object.assign( WebGLRenderer.prototype, { }, + getMaxAnisotropy: function () { + + console.warn( 'THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy().' ); + return this.capabilities.getMaxAnisotropy(); + + }, + + getPrecision: function () { + + console.warn( 'THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision.' ); + return this.capabilities.precision; + + }, + supportsFloatTextures: function () { console.warn( 'THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( \'OES_texture_float\' ).' ); diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index dc33c52547cac39ad3fbf01cd0b8f0a765cb6fb6..ef40d08aab250b5cde91314bfce58c33e3c93997 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -343,18 +343,6 @@ function WebGLRenderer( parameters ) { }; - this.getMaxAnisotropy = function () { - - return capabilities.getMaxAnisotropy(); - - }; - - this.getPrecision = function () { - - return capabilities.precision; - - }; - this.getPixelRatio = function () { return _pixelRatio; diff --git a/src/renderers/webgl/WebGLPrograms.js b/src/renderers/webgl/WebGLPrograms.js index ae6b120ab5a0227a63ba01ca4f160ff2dd1d8351..ab24bc063719340f0ad084f11759df428795db19 100644 --- a/src/renderers/webgl/WebGLPrograms.js +++ b/src/renderers/webgl/WebGLPrograms.js @@ -111,7 +111,7 @@ function WebGLPrograms( renderer, capabilities ) { // (not to blow over maxLights budget) var maxBones = object.isSkinnedMesh ? allocateBones( object ) : 0; - var precision = renderer.getPrecision(); + var precision = capabilities.precision; if ( material.precision !== null ) {