소스 검색

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;