Commit f9c5fa6c authored by Evgeny's avatar Evgeny

Newest version with three deps and intersectsBox fix

parent f03a0d5a
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @author julianwa / https://github.com/julianwa * @author julianwa / https://github.com/julianwa
*/ */
define(['three'], function(THREE, BSPTree){ define(['three'], function(THREE){
var Projector = {}; var Projector = {};
var i, l, o; // counters var i, l, o; // counters
...@@ -239,7 +239,7 @@ define(['three'], function(THREE, BSPTree){ ...@@ -239,7 +239,7 @@ define(['three'], function(THREE, BSPTree){
_points3[ 1 ] = v2.positionScreen; _points3[ 1 ] = v2.positionScreen;
_points3[ 2 ] = v3.positionScreen; _points3[ 2 ] = v3.positionScreen;
return _clipBox.isIntersectionBox( _boundingBox.setFromPoints( _points3 ) ); return _clipBox.intersectsBox( _boundingBox.setFromPoints( _points3 ) );
}; };
......
{ {
"name": "three.js-projector", "name": "three.js-projector",
"version": "1.0.3", "version": "3.0.1",
"description": "Three.js projector taken from example", "description": "Three.js projector taken from example",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment