Update: CC - Before Render - Moorcow (080g209iov.js) 414 bytes modified
parent
1e8b24b3e9
commit
28755a431f
|
@ -15,6 +15,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
|||
this.renderer = this.entityLoaded.renderer;
|
||||
this.raycaster = this.entityLoaded.raycaster;
|
||||
this.scene = this.entityLoaded.scene;
|
||||
this.throwerLight = this.entityLoaded.throwerLight;
|
||||
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
|
||||
this.fireParticleEngine = this.entityLoaded.fireParticleEngine;
|
||||
this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine;
|
||||
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue