ncannasse 6 lat temu
rodzic
commit
6718a8f55c
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      h3d/scene/pbr/SpotLight.hx

+ 3 - 3
h3d/scene/pbr/SpotLight.hx

@@ -15,12 +15,12 @@ class SpotLight extends Light {
 		pbr = new h3d.shader.pbr.Light.SpotLight();
 		shadows = new h3d.pass.SpotShadowMap(this);
 		super(pbr,parent);
-		range = 10;
-		maxRange = 10;
-		angle = 45;
 		generatePrim();
 		lightProj = new h3d.Camera();
 		lightProj.screenRatio = 1.0;
+		range = 10;
+		maxRange = 10;
+		angle = 45;
 	}
 
 	public override function clone( ?o : h3d.scene.Object ) : h3d.scene.Object {