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

How to Assign FloatParameter

$
0
0
I want to use a float from a sliders value to change the Ambient Occlusion Intensity, how do I pass the float value into the Ambient Occlusion? Here is what I'm trying now. This is a Dynamic Float assigned to the slider. public void SetAmbientOcclusion(float f) { ambientOcclusionIntensity.value = f; PlayerPrefs.SetFloat("AOIntensity", f); AmbientOcclusion aO = null; ppv.profile.TryGetSettings(out aO); FloatParameter fP = new FloatParameter {value = f}; //the fp not getting set aO.intensity = fP; Debug.Log(fP); ambientOcclusionIntensityText.text = "Intensity : " + f.ToString("F2"); PlayerPrefs.SetFloat("AOIntensity", f); } My working assumption is that FloatParameter fP = new FloatParameter {value = f}; is not correct.

Viewing all articles
Browse latest Browse all 713

Trending Articles



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