|
@@ -48,7 +48,7 @@ var APP = {
|
|
update: []
|
|
update: []
|
|
};
|
|
};
|
|
|
|
|
|
- var scriptWrapParams = 'player,renderer,scene';
|
|
|
|
|
|
+ var scriptWrapParams = 'player,renderer,scene,camera';
|
|
var scriptWrapResultObj = {};
|
|
var scriptWrapResultObj = {};
|
|
for ( var eventKey in events ) {
|
|
for ( var eventKey in events ) {
|
|
scriptWrapParams += ',' + eventKey;
|
|
scriptWrapParams += ',' + eventKey;
|
|
@@ -75,7 +75,7 @@ var APP = {
|
|
var script = scripts[ i ];
|
|
var script = scripts[ i ];
|
|
|
|
|
|
var functions = ( new Function( scriptWrapParams,
|
|
var functions = ( new Function( scriptWrapParams,
|
|
- script.source + '\nreturn ' + scriptWrapResult+ ';' ).bind( object ) )( this, renderer, scene );
|
|
|
|
|
|
+ script.source + '\nreturn ' + scriptWrapResult+ ';' ).bind( object ) )( this, renderer, scene, camera );
|
|
|
|
|
|
for ( var name in functions ) {
|
|
for ( var name in functions ) {
|
|
|
|
|
|
@@ -100,12 +100,6 @@ var APP = {
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
- this.getCamera = function () {
|
|
|
|
-
|
|
|
|
- return camera;
|
|
|
|
-
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
this.setCamera = function ( value ) {
|
|
this.setCamera = function ( value ) {
|
|
|
|
|
|
camera = value;
|
|
camera = value;
|