Ver código fonte

Refractor: Fix function name

Mugen87 7 anos atrás
pai
commit
3ec4acf87f
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/js/objects/Refractor.js

+ 1 - 1
examples/js/objects/Refractor.js

@@ -71,7 +71,7 @@ THREE.Refractor = function ( width, height, options ) {
 		var view = new THREE.Vector3();
 		var view = new THREE.Vector3();
 		var normal = new THREE.Vector3();
 		var normal = new THREE.Vector3();
 
 
-		return function updateRefractorPlane( camera ) {
+		return function visible( camera ) {
 
 
 			refractorWorldPosition.setFromMatrixPosition( scope.matrixWorld );
 			refractorWorldPosition.setFromMatrixPosition( scope.matrixWorld );
 			cameraWorldPosition.setFromMatrixPosition( camera.matrixWorld );
 			cameraWorldPosition.setFromMatrixPosition( camera.matrixWorld );