Skip to content
  • Niklas Haas's avatar
    shaders: generalize the PRNG · c99cd6bf
    Niklas Haas authored
    I've also found some independent resources describing this exact
    algorithm. In particular, one of them also offers a performance tip: we
    can use fract() instead of x - floor() since we don't need the exact
    modulus semantics.
    c99cd6bf