diff --git a/src/scene/lights/DistantStar.php b/src/scene/lights/DistantStar.php new file mode 100644 index 0000000..8af8bb4 --- /dev/null +++ b/src/scene/lights/DistantStar.php @@ -0,0 +1,73 @@ +type = self::TYPE_DISTANT; + $this->id = Scene::createID(); + Base::__construct($config); + } +} + +?> diff --git a/src/scene/lights/LightBase.php b/src/scene/lights/LightBase.php index 849756b..a0532d1 100644 --- a/src/scene/lights/LightBase.php +++ b/src/scene/lights/LightBase.php @@ -1,6 +1,6 @@ type = self::TYPE_PROJECTION; + $this->id = Scene::createID(); + Base::__construct($config); + } +} + +?> diff --git a/src/scene/lights/Sphere.php b/src/scene/lights/Sphere.php new file mode 100644 index 0000000..d5377cc --- /dev/null +++ b/src/scene/lights/Sphere.php @@ -0,0 +1,106 @@ +type = self::TYPE_SPHERE; + $this->id = Scene::createID(); + Base::__construct($config); + } +} + +?> diff --git a/src/scene/lights/Spot.php b/src/scene/lights/Spot.php new file mode 100644 index 0000000..4e09133 --- /dev/null +++ b/src/scene/lights/Spot.php @@ -0,0 +1,102 @@ +type = self::TYPE_SPOT; + $this->id = Scene::createID(); + Base::__construct($config); + } +} + +?> diff --git a/src/scene/lights/Sun.php b/src/scene/lights/Sun.php new file mode 100644 index 0000000..f984642 --- /dev/null +++ b/src/scene/lights/Sun.php @@ -0,0 +1,77 @@ +visibility = $visibility; + else $this->visibility = new Visibility(); + $this->type = self::TYPE_SUN; + $this->id = Scene::createID(); + Base::__construct($config); + } +} + +?> diff --git a/src/scene/lights/Visibility.php b/src/scene/lights/Visibility.php index 30c713f..857e393 100644 --- a/src/scene/lights/Visibility.php +++ b/src/scene/lights/Visibility.php @@ -1,6 +1,6 @@ diff --git a/src/scene/render/cache/VisibilityMapCache.php b/src/scene/render/cache/VisibilityMapCache.php index 637bde0..4000549 100644 --- a/src/scene/render/cache/VisibilityMapCache.php +++ b/src/scene/render/cache/VisibilityMapCache.php @@ -50,7 +50,7 @@ class VisibilityMapCache extends BaseCfg public $visibilityTargethitrate = 0.99; /** - * @var integer TODO:具体作用尚未明确(默认取值:0) + * @var integer TODO:可见范围(半径),具体作用尚未明确(默认取值:0) */ public $visibilityRadius = 0;