mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Remove light
This commit is contained in:
parent
15b2d51b6d
commit
08cf0cb22e
@ -225,18 +225,6 @@ namespace NewHorizons.Builder.Body
|
|||||||
}
|
}
|
||||||
else
|
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);
|
GameObject whiteHoleVolumeGO = GameObject.Instantiate(_whiteHoleVolume);
|
||||||
whiteHoleVolumeGO.transform.parent = singularity.transform;
|
whiteHoleVolumeGO.transform.parent = singularity.transform;
|
||||||
whiteHoleVolumeGO.transform.localPosition = Vector3.zero;
|
whiteHoleVolumeGO.transform.localPosition = Vector3.zero;
|
||||||
|
|||||||
@ -12,7 +12,6 @@ namespace NewHorizons.Components.SizeControllers
|
|||||||
{
|
{
|
||||||
public Material material;
|
public Material material;
|
||||||
public float innerScale;
|
public float innerScale;
|
||||||
public Light light;
|
|
||||||
public AudioSource audioSource;
|
public AudioSource audioSource;
|
||||||
public AudioSource oneShotAudioSource;
|
public AudioSource oneShotAudioSource;
|
||||||
public SphereCollider sphereCollider;
|
public SphereCollider sphereCollider;
|
||||||
@ -27,11 +26,6 @@ namespace NewHorizons.Components.SizeControllers
|
|||||||
material.SetFloat(SingularityBuilder.MaxDistortRadius, CurrentScale);
|
material.SetFloat(SingularityBuilder.MaxDistortRadius, CurrentScale);
|
||||||
material.SetFloat(SingularityBuilder.DistortFadeDist, CurrentScale - CurrentScale * innerScale);
|
material.SetFloat(SingularityBuilder.DistortFadeDist, CurrentScale - CurrentScale * innerScale);
|
||||||
|
|
||||||
if (light != null)
|
|
||||||
{
|
|
||||||
light.range = CurrentScale * 7f;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (audioSource != null)
|
if (audioSource != null)
|
||||||
{
|
{
|
||||||
audioSource.maxDistance = CurrentScale * 2.5f;
|
audioSource.maxDistance = CurrentScale * 2.5f;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user