Post-Processing Scripting ?
Hello, can you help and give me some example of scripting on Post-Processing asset?
I want to make the values growing after the time for example.
thx
Answer by Harinezumi · Feb 13, 2018 at 08:34 AM
The post-processing stack V2 is very easy to script, there are even examples on the wiki, here.
Basically you need to get the effect that you want to change, and then control its properties, for example:
[SerializeField]
private PostProcessVolume m_PostProcessVolume = null;
private void ControlAmbientOcclusion () {
if (m_PostProcessVolume != null) {
AmbientOcclusion ambientOcclusion;
if (m_PostProcessVolume.profile.TryGetSettings(out ambientOcclusion)) {
m_AmbientOcclusion.intensity.value = 1;
}
}
}
Your answer
Follow this Question
Related Questions
why the effects of the Post Processing stack do not activate through an if-statement 0 Answers
Help using Universal Render Pipeline with Shader Graphs and post-processing effects !! 0 Answers
Global Volume object vs Post Processing Volume component in URP 1 Answer
How do you port old shaders to hlsl so they work with the new post-processing stack? 1 Answer