Blender V5.3
random Namespace Reference

Namespaces

namespace  detail

Functions

float interleaved_gradient (float2 pixel, float seed, float offset)
float2 interleaved_gradient_2d (float2 pixel, float2 seed, float2 offset)
float3 interleaved_gradient_3d (float2 pixel, float3 seed, float3 offset)
float pcg (float v)
float pcg (float2 v)
float pcg (float3 v)
float3 pcg_3d (float3 v)
float4 pcg_4d (float4 v)
template<typename T>
float2 hammersley_2d (T i, T sample_count)
template float2 hammersley_2d< float > (float i, float sample_count)
template float2 hammersley_2d< uint > (uint i, uint sample_count)
template float2 hammersley_2d< int > (int i, int sample_count)

Function Documentation

◆ hammersley_2d()

◆ hammersley_2d< float >()

template float2 random::hammersley_2d< float > ( float i,
float sample_count )

References hammersley_2d().

◆ hammersley_2d< int >()

template float2 random::hammersley_2d< int > ( int i,
int sample_count )

References hammersley_2d().

◆ hammersley_2d< uint >()

template float2 random::hammersley_2d< uint > ( uint i,
uint sample_count )

References hammersley_2d().

◆ interleaved_gradient()

◆ interleaved_gradient_2d()

float2 random::interleaved_gradient_2d ( float2 pixel,
float2 seed,
float2 offset )

◆ interleaved_gradient_3d()

float3 random::interleaved_gradient_3d ( float2 pixel,
float3 seed,
float3 offset )

Seeded 3D interleaved gradient noise [jorg2014].

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

References interleaved_gradient(), interleaved_gradient_3d(), float3::x, float3::y, and float3::z.

Referenced by gbuffer::closure_dither_noise(), and interleaved_gradient_3d().

◆ pcg() [1/3]

float random::pcg ( float v)

1D PCG hash on arbitrary floats [jarz2020].

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

References floatBitsToUint, random::detail::pcg(), pcg(), and random::detail::pcg_rcp.

Referenced by eevee::hashed_transparency::alpha_threshold(), pcg(), pcg(), and pcg().

◆ pcg() [2/3]

float random::pcg ( float2 v)

1D PCG nested variant on 2D input [jarz2020].

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

References floatBitsToUint, random::detail::pcg(), pcg(), random::detail::pcg_rcp, uint2::x, and uint2::y.

◆ pcg() [3/3]

float random::pcg ( float3 v)

1D PCG nested variant on 3D input [jarz2020].

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

References floatBitsToUint, random::detail::pcg(), pcg(), random::detail::pcg_rcp, uint3::x, uint3::y, and uint3::z.

◆ pcg_3d()

float3 random::pcg_3d ( float3 v)

3D PCG variant detailed in [jarz2020].

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

References floatBitsToUint, pcg_3d(), random::detail::pcg_rcp, uint3::x, uint3::y, and uint3::z.

Referenced by pcg_3d().

◆ pcg_4d()

float4 random::pcg_4d ( float4 v)

4D PCG variant detailed in [jarz2020].

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

References floatBitsToUint, pcg_4d(), random::detail::pcg_rcp, uint4::w, uint4::x, uint4::y, and uint4::z.

Referenced by eevee::amend_frag(), pcg_4d(), and eevee::surf_shadow().