Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Post Process Volume - Cannot smoothly Lerp Filter color - Unity 2020.1.17f1

Discussion in 'Editor & General Support' started by turboturboturbo, Jan 14, 2021.

  1. turboturboturbo

    turboturboturbo

    Joined:
    Dec 2, 2018
    Posts:
    25
    I am unable to smoothly Lerp the
     Color Filter 
    on the
    post process volume
    .
    This stuttering is noticeable when doing slow lerps (5-60 seconds)

    I tested the same code to lerp a UI image color and it works as expected (smoothly), so I don't understand why it's not smooth on the Post process Color Filter.

    Code (CSharp):
    1.  
    2.         Update() {
    3.               // ...
    4.              OnColorChange.Invoke(Color.Lerp(color1, color2, t));
    5.         }
    6.  
    7.  
    8.         Awake() {
    9.               PostProcessingVolume.sharedProfile.TryGet<ColorAdjustments>(out _ColorAdjustments);
    10.          }
    11.  
    12.         void  OnColorChange(Color c) {    
    13.               _ColorAdjustments.colorFilter.value = c;
    14.          }
    15.  
    Are there settings I need to change on the Post Process volume to avoid this stuttering, or is this possibly a bug?

    Thank you!
     
    Last edited: Jan 14, 2021