Răsfoiți Sursa

Update spot

ShiroSmith 6 ani în urmă
părinte
comite
1834005bb5
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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);
 		shadows = new h3d.pass.SpotShadowMap(this);
 		super(pbr,parent);
 		super(pbr,parent);
 		range = 10;
 		range = 10;
+		maxRange = 10;
+		angle = 45;
 		generatePrim();
 		generatePrim();
 		lightProj = new h3d.Camera();
 		lightProj = new h3d.Camera();
 		lightProj.screenRatio = 1.0;
 		lightProj.screenRatio = 1.0;