Skip to content

shaders: improve sh_prng using pcg3d algorithm

Niklas Haas requested to merge pcg3d into master

Only works on GLSL >= 130 due to requiring integer math, but well worth it. Higher quality, better response to seeding with adjacent values, faster, and natively produces 3 outputs in the same permutation step.

PRNG credit goes to http://jcgt.org/published/0009/03/02/

Closes #162 (closed)

Merge request reports