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

Accessing HDRP's Volume in script

$
0
0
HDRP uses Volume for post processing. I am trying to access this feature in my C# script. I can however access the Depth Of Field attribute, how do I access the Near Blur and Far Blur values? using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering; using UnityEngine.Rendering.HighDefinition; public class LimitDepthOfField : MonoBehaviour { public Volume postProcessVolume; DepthOfField dof; // Start is called before the first frame update void Start () { } void ChangeValue() { if (postProcessVolume.profile.TryGet (out DepthOfField tempB)) { dof = tempB; //Access FarBlur Start Value } } } ![alt text][1] [1]: https://i.stack.imgur.com/vOnrm.png

Viewing all articles
Browse latest Browse all 713

Trending Articles



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