Browse Source

Set soft shadow length

Josh Engebretson 11 years ago
parent
commit
5c6415482d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Light2DExample/Resources/Components/Light.js

+ 1 - 0
Light2DExample/Resources/Components/Light.js

@@ -4,6 +4,7 @@ var node = self.node;
 var light = node.createComponent("PointLight2D");
 light.color = [.1 + Math.random() * .9, .1 + Math.random() * .9, .1 + Math.random() * .9, 1];
 light.radius = 4;
+light.softShadowLength = 4;
 light.castShadows = true;
 light.softShadows = true;
 light.numRays = 512;