Josh Engebretson 11 роки тому
батько
коміт
5c6415482d
1 змінених файлів з 1 додано та 0 видалено
  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");
 var light = node.createComponent("PointLight2D");
 light.color = [.1 + Math.random() * .9, .1 + Math.random() * .9, .1 + Math.random() * .9, 1];
 light.color = [.1 + Math.random() * .9, .1 + Math.random() * .9, .1 + Math.random() * .9, 1];
 light.radius = 4;
 light.radius = 4;
+light.softShadowLength = 4;
 light.castShadows = true;
 light.castShadows = true;
 light.softShadows = true;
 light.softShadows = true;
 light.numRays = 512;
 light.numRays = 512;