Quantcast
Channel: Questions in topic: "post processing"
Viewing all articles
Browse latest Browse all 713

Change ChromaticAberration (Cinemachine's) via script

$
0
0
Hello All, I'm struggling a bit on this one. I have a cinemachine virtual camera with Volume Settings extension and a chromatic aberration override. I am just trying to change via code the intensity of the chromatic aberration but can't seem to be able to find anywhere how to access it. I can see with foreach (UnityEngine.Rendering.VolumeComponent volumeComponent in volumeSettings.m_Profile.components) { Debug.Log(volumeComponent.name); } That a component with name "ChromaticAberration" exist. I also think that the class I want to use is UnityEngine.Rendering.HighDefinition.ChromaticAberration How can I now convert the VolumeComponent into the ChromaticAberration so I can change its intensity? Thanks

Viewing all articles
Browse latest Browse all 713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>