Skip to content

Commit

Permalink
Add some randomness to flashlight intensity
Browse files Browse the repository at this point in the history
(Mistakenly committed half-finished work on this before)
  • Loading branch information
vilcans committed Nov 28, 2013
1 parent b9b5c9c commit 575eb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FlashlightComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 575eb88

Please sign in to comment.