Пример #1
0
 public void TriggerReflect(gameLight input, Vector3 originA, Vector3 originB, Vector3 inNomral)
 {
     Debug.Log("Trigger Mirror!");
     outcomeLight.lightOriginRight = originA - outcomeLight.lightProbe.transform.position;
     outcomeLight.lightOriginLeft = originB - outcomeLight.lightProbe.transform.position;
     Vector3 newDir = Vector3.Reflect(input.lightDirection, inNomral);
     outcomeLight.ChangeLightDirection(newDir);
     outcomeLight.SetEnable(true);
     outcomeLight.useWidth = false;
 }
Пример #2
0
	// Use this for initialization
	void Start () {
        outcomeLight = GetComponent<gameLight>();
        outcomeLight.SetEnable(false);
	}