浏览代码

Update spot

ShiroSmith 6 年之前
父节点
当前提交
1834005bb5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      h3d/scene/pbr/SpotLight.hx

+ 2 - 0
h3d/scene/pbr/SpotLight.hx

@@ -16,6 +16,8 @@ class SpotLight extends Light {
 		shadows = new h3d.pass.SpotShadowMap(this);
 		super(pbr,parent);
 		range = 10;
+		maxRange = 10;
+		angle = 45;
 		generatePrim();
 		lightProj = new h3d.Camera();
 		lightProj.screenRatio = 1.0;