Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renaming some variables for consistency.

  • Loading branch information...
commit 3e37300566d518486d30eecbd2a9b5a014688154 1 parent 7c91606
@modeswitch modeswitch authored
Showing with 6 additions and 6 deletions.
  1. +4 −4 src/components/light.js
  2. +2 −2 src/services/renderer.js
View
8 src/components/light.js
@@ -31,7 +31,7 @@ define( function ( require ) {
lightDefinition = new LightDefinition();
}
- this._cubicVRLight = new service.target.context.Light(lightDefinition);
+ this._cubicvrLight = new service.target.context.Light(lightDefinition);
for (var propertyIndex = 0; propertyIndex < properties.length; propertyIndex++){
this[properties[propertyIndex]] = lightDefinition[properties[propertyIndex]];
@@ -43,11 +43,11 @@ define( function ( require ) {
function onUpdate(event){
for (var propertyIndex = 0; propertyIndex < properties.length; propertyIndex++){
- this._cubicVRLight[properties[propertyIndex]] = this[properties[propertyIndex]];
+ this._cubicvrLight[properties[propertyIndex]] = this[properties[propertyIndex]];
}
//This should return the absolute light position
- this._cubicVRLight.position = math.matrix4.multiplyVector3(this.owner.findComponent( "Transform" ).absolute(), [ 0, 0, 0]);
- //this._cubicVRLight.rotation = this.owner.findComponent( "Rotation" ).absolute();
+ this._cubicvrLight.position = math.matrix4.multiplyVector3(this.owner.findComponent( "Transform" ).absolute(), [ 0, 0, 0]);
+ //this._cubicvrLight.rotation = this.owner.findComponent( "Rotation" ).absolute();
}
function onEntitySpaceChanged( event ) {
View
4 src/services/renderer.js
@@ -49,8 +49,8 @@ define( function ( require ) {
// Handle lights for the current space
var cvrLights = [];
for( i = 0, l = lightEntities.length; i < l; ++ i ) {
- var lightComponent = lightEntities[i].find( "Light" );
- lightComponent.prepareForRender();
+ var light = lightEntities[i].find( "Light" );
+ light.prepareForRender();
cvrLights.push( lightComponent._cvr.light );
}
Please sign in to comment.
Something went wrong with that request. Please try again.