Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Blending post-processing volumes with different LUTs

Discussion in 'Universal Render Pipeline' started by ymansurozer, Oct 26, 2020.

  1. ymansurozer

    ymansurozer

    Joined:
    May 24, 2020
    Posts:
    2
    I am currently writing a day / night cycle and am using several color lookup textures (LUTs) for sunrise, sunset, evening, night etc. I need to be able to have a smooth transition between these.

    I tried two approaches but both failed:
    1. I tried adding two gameobjects each with a Volume. Each Volume contained a different LUT and I tried changing their Weight values to make them blend. But having two volumes with different weights (e.g. x and 1-x) does not do any blending. It simply prioritizes one and changes to the other instantly when the former's weight becomes 0. Screenshots of my settings can be found here.
    2. I have managed to create a shader that transitions from one LUT to another but now the problem is, how can I use this shader as a post-processing effect in the "Volume"? The "Volume" component does not show the custom effect I created. And I could not find how to create custom effects in URP Volume system. There is this page but it only works for the old post processing system.
    I have been researching all week and could not find a solution. I would be forever grateful if someone can point me in the right direction.
     
  2. projectorgames_unity

    projectorgames_unity

    Joined:
    Oct 15, 2018
    Posts:
    107
    Did any solution to this come up? I want to do the same thing, and this is the top hit on google!
     
  3. ymansurozer

    ymansurozer

    Joined:
    May 24, 2020
    Posts:
    2