Search Unity

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:
    119
    Not any more. :(
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    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.