Remove light

This commit is contained in:
TerrificTrifid 2022-11-08 20:05:53 -06:00
parent 15b2d51b6d
commit 08cf0cb22e
2 changed files with 0 additions and 18 deletions

View File

@ -225,18 +225,6 @@ namespace NewHorizons.Builder.Body
}
else
{
/*
var ambientLight = GameObject.Instantiate(_whiteHoleAmbientLight);
ambientLight.transform.parent = singularity.transform;
ambientLight.transform.localScale = Vector3.one;
ambientLight.transform.localPosition = Vector3.zero;
ambientLight.name = "AmbientLight";
ambientLight.SetActive(true);
var light = ambientLight.GetComponent<Light>();
light.range = distort * 7f;
if (sizeController != null) sizeController.light = light;
*/
GameObject whiteHoleVolumeGO = GameObject.Instantiate(_whiteHoleVolume);
whiteHoleVolumeGO.transform.parent = singularity.transform;
whiteHoleVolumeGO.transform.localPosition = Vector3.zero;

View File

@ -12,7 +12,6 @@ namespace NewHorizons.Components.SizeControllers
{
public Material material;
public float innerScale;
public Light light;
public AudioSource audioSource;
public AudioSource oneShotAudioSource;
public SphereCollider sphereCollider;
@ -27,11 +26,6 @@ namespace NewHorizons.Components.SizeControllers
material.SetFloat(SingularityBuilder.MaxDistortRadius, CurrentScale);
material.SetFloat(SingularityBuilder.DistortFadeDist, CurrentScale - CurrentScale * innerScale);
if (light != null)
{
light.range = CurrentScale * 7f;
}
if (audioSource != null)
{
audioSource.maxDistance = CurrentScale * 2.5f;