Skip to content
  • Niklas Haas's avatar
    shaders: refactor randomness seeding · 8f0890de
    Niklas Haas authored
    Instead of having the user pass in seed values, instead pass in a global
    `index` on pl_shader generation, and use this to internally seed the
    PRNG / perturb the dither matrix / etc.
    
    This removes the highly state-dependent garbage from the *_params
    structs, which is the right thing to do for the upcoming pl_renderer
    options.
    8f0890de