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

Change offset values of HDRP/Unlit shader

Discussion in 'High Definition Render Pipeline' started by beccalando, Feb 8, 2020.

  1. beccalando

    beccalando

    Joined:
    May 24, 2019
    Posts:
    2
    Hello,

    I am fairly new to this and the HDRP in general so I apologize in advance if there is an obvious solution to this.
    My goal is to create a scrolling background during runtime and usually, you would do this by altering the offset value of your material. How can I access and change these values in the HDRP/Unlit shader during runtime?
    HDRPUnlit Shader.png
    If I were to chose a normal Unlit shader for this, the texture becomes unclear due to the fog. Since I would like to keep the fog active, I would prefer not having to switch to the normal Unlit shader.
     
  2. beccalando

    beccalando

    Joined:
    May 24, 2019
    Posts:
    2
    Nevermind, I've created a custom HDRP shader via shadergraph that manipulates these values quiet easily. Many ressources to be found on that too.