From 575eb88e81bff04fee8ab79415c6adfe0d995d52 Mon Sep 17 00:00:00 2001 From: Martin Vilcans Date: Thu, 28 Nov 2013 17:12:14 +0100 Subject: [PATCH] Add some randomness to flashlight intensity (Mistakenly committed half-finished work on this before) --- lib/FlashlightComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/FlashlightComponent.js b/lib/FlashlightComponent.js index 909b115..e1ac003 100644 --- a/lib/FlashlightComponent.js +++ b/lib/FlashlightComponent.js @@ -37,7 +37,7 @@ define([ spotLightEntity.transformComponent.setRotation(rotX, rotY, 0); spotLightEntity.transformComponent.setUpdated(); - spotLight.intensity = (ValueNoise.evaluate1d(time, 2.3) - .5) * .2;; + spotLight.intensity = (ValueNoise.evaluate1d(time, .4)) * .2 + .8; } spotLightEntity.setComponent(script);