Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Unscaled Time in shader

Discussion in 'Shaders' started by ruj, Jan 26, 2015.

  1. ruj

    ruj

    Joined:
    Feb 28, 2013
    Posts:
    113
    I'm really surprised that a search brought up nothing on this issue, but is there no built-in shader value for unscaled time? Do I have to pass in a global shader float of my own to access this? Thanks for anyone who knows how to handle this.

    Stephen
     
  2. tmcsweeneyML

    tmcsweeneyML

    Joined:
    Aug 13, 2013
    Posts:
    7
  3. DanTaylor

    DanTaylor

    Joined:
    Jul 6, 2013
    Posts:
    92
    Not any more. :(
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    8,681
    Not ever.
    _Time
    has always been
    Time.timeSinceLevelLoad
    based. You do have to write a script that sets a custom global shader value.
     
    xVergilx likes this.
unityunity