Blender V5.3
random::detail Namespace Reference

Functions

float van_der_corput_radical_inverse (uint bits)
float interleaved_gradient (float2 v, float offset=0.0f)
uint pcg (uint u)

Variables

static constexpr float pcg_rcp = 1.0f / float(0xffffffffU)

Function Documentation

◆ interleaved_gradient()

float random::detail::interleaved_gradient ( float2 v,
float offset = 0.0f )

Interleaved gradient backing noise function [jorg2014]. Somewhat temporally coherent by producing visibly interleaved gradients. Not very random as a result.

Definition at line 109 of file eevee_sampling_lib.bsl.hh.

References fract(), and interleaved_gradient().

Referenced by interleaved_gradient(), and random::interleaved_gradient().

◆ pcg()

uint random::detail::pcg ( uint u)

Permutated congruential generator (PCG) integer sequence [onei2014]. Good and fast.

Definition at line 118 of file eevee_sampling_lib.bsl.hh.

References pcg(), and state.

Referenced by pcg(), random::pcg(), random::pcg(), and random::pcg().

◆ van_der_corput_radical_inverse()

float random::detail::van_der_corput_radical_inverse ( uint bits)

Refer to Sec. 4 in [damm2012].

Definition at line 90 of file eevee_sampling_lib.bsl.hh.

References bitfieldReverse, float, and van_der_corput_radical_inverse().

Referenced by random::hammersley_2d(), and van_der_corput_radical_inverse().

Variable Documentation

◆ pcg_rcp

float random::detail::pcg_rcp = 1.0f / float(0xffffffffU)
staticconstexpr