using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
public class environmentHandler : MonoBehaviour
{
public Volume Volume;
public float LF_Instensity;
VolumeProfile volumeProfile;
// Start is called before the first frame update
void Start()
{
volumeProfile = Volume.profile;
}
// Update is called once per frame
void Update()
{
if (volumeProfile == null)
volumeProfile = Volume.profile;
UnityEngine.Rendering.HighDefinition.Bloom lensEffect;
volumeProfile.TryGet(out lensEffect);
if (lensEffect == null)
{
Debug.Log("Null");
return;
}
lensEffect.dirtIntensity.value = LF_Instensity;
}
}