Update: CC - Before Render - Moorcow (080g209iov.js) 414 bytes modified

beta.r3js.org
-=yb4f310 2017-11-17 14:51:10 +01:00
parent 1e8b24b3e9
commit 28755a431f
1 changed files with 14 additions and 1 deletions

View File

@ -15,7 +15,8 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.renderer = this.entityLoaded.renderer;
this.raycaster = this.entityLoaded.raycaster;
this.scene = this.entityLoaded.scene;
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
this.throwerLight = this.entityLoaded.throwerLight;
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
this.fireParticleEngine = this.entityLoaded.fireParticleEngine;
this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine;
this.explodeParticleEngine = this.entityLoaded.explodeParticleEngine;
@ -377,6 +378,12 @@ if (this.mouseIsDown) {
}
this.renderer.updateInstance('clearColor');
this.throwerLight.intensity += 0.01;
if (this.throwerLight.instensity > 2) {
this.throwerLight.instensity = 2;
}
this.throwerLight.updateInstance('instensity');
var intersects = this.raycaster.getIntersectedObjects(this.scene.meshes);
intersects.map(
function(intersect) {
@ -462,6 +469,12 @@ if (this.mouseIsDown) {
this.fog.color.r = 0.32;
}
// this.fog.updateInstance('color');
this.throwerLight.intensity -= 0.01;
if (this.throwerLight.instensity < 0) {
this.throwerLight.instensity = 0;
}
this.throwerLight.updateInstance('instensity');
}
if (this.spawnTime > this.nextSpawnTime) {