Blender V5.3
gpu_shader_material_tex_noise.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  NoiseFBM< T >
struct  NoiseMultiFractal< T >
struct  NoiseHeteroTerrain< T >
struct  NoiseHybridMultiFractal< T >
struct  NoiseRidgedMultiFractal< T >

Functions

float random_float_offset (float seed)
float2 random_vec2_offset (float seed)
float3 random_vec3_offset (float seed)
float4 random_vec4_offset (float seed)
template<typename T>
T random_offset (float)
template<>
float random_offset< float > (float seed)
template<>
float2 random_offset< float2 > (float seed)
template<>
float3 random_offset< float3 > (float seed)
template<>
float4 random_offset< float4 > (float seed)
float distort_point (float p, float distortion)
float2 distort_point (float2 p, float distortion)
float3 distort_point (float3 p, float distortion)
float4 distort_point (float4 p, float distortion)
float color_seed_offset (float)
float color_seed_offset (float2)
float color_seed_offset (float3)
float color_seed_offset (float4)
template<typename T, typename NoiseT>
void noise_fractal_distorted (T p, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
template void noise_fractal_distorted< float, NoiseFBM< float > > (float, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float2, NoiseFBM< float2 > > (float2, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float3, NoiseFBM< float3 > > (float3, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float4, NoiseFBM< float4 > > (float4, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float, NoiseMultiFractal< float > > (float, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float2, NoiseMultiFractal< float2 > > (float2, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float3, NoiseMultiFractal< float3 > > (float3, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float4, NoiseMultiFractal< float4 > > (float4, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float, NoiseHeteroTerrain< float > > (float, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float2, NoiseHeteroTerrain< float2 > > (float2, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float3, NoiseHeteroTerrain< float3 > > (float3, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float4, NoiseHeteroTerrain< float4 > > (float4, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float, NoiseHybridMultiFractal< float > > (float, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float2, NoiseHybridMultiFractal< float2 > > (float2, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float3, NoiseHybridMultiFractal< float3 > > (float3, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float4, NoiseHybridMultiFractal< float4 > > (float4, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float, NoiseRidgedMultiFractal< float > > (float, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float2, NoiseRidgedMultiFractal< float2 > > (float2, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float3, NoiseRidgedMultiFractal< float3 > > (float3, float, float, float, float, float, float, float, float, float &, float4 &)
template void noise_fractal_distorted< float4, NoiseRidgedMultiFractal< float4 > > (float4, float, float, float, float, float, float, float, float, float &, float4 &)
void node_noise_tex_fbm_1d (float3, float w, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_fbm_2d (float3 co, float, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_fbm_3d (float3 co, float, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_fbm_4d (float3 co, float w, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_multi_fractal_1d (float3, float w, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_multi_fractal_2d (float3 co, float, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_multi_fractal_3d (float3 co, float, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_multi_fractal_4d (float3 co, float w, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_hetero_terrain_1d (float3, float w, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_hetero_terrain_2d (float3 co, float, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_hetero_terrain_3d (float3 co, float, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_hetero_terrain_4d (float3 co, float w, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_hybrid_multi_fractal_1d (float3, float w, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_hybrid_multi_fractal_2d (float3 co, float, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_hybrid_multi_fractal_3d (float3 co, float, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_hybrid_multi_fractal_4d (float3 co, float w, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_ridged_multi_fractal_1d (float3, float w, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_ridged_multi_fractal_2d (float3 co, float, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_ridged_multi_fractal_3d (float3 co, float, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)
void node_noise_tex_ridged_multi_fractal_4d (float3 co, float w, float scale, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, float normalize, float compute_color, float &value, float4 &color)

Function Documentation

◆ color_seed_offset() [1/4]

◆ color_seed_offset() [2/4]

float color_seed_offset ( float2 )

Definition at line 113 of file gpu_shader_material_tex_noise.bsl.hh.

References color_seed_offset().

◆ color_seed_offset() [3/4]

float color_seed_offset ( float3 )

Definition at line 117 of file gpu_shader_material_tex_noise.bsl.hh.

References color_seed_offset().

◆ color_seed_offset() [4/4]

float color_seed_offset ( float4 )

Definition at line 121 of file gpu_shader_material_tex_noise.bsl.hh.

References color_seed_offset().

◆ distort_point() [1/4]

◆ distort_point() [2/4]

float2 distort_point ( float2 p,
float distortion )

◆ distort_point() [3/4]

float3 distort_point ( float3 p,
float distortion )

◆ distort_point() [4/4]

float4 distort_point ( float4 p,
float distortion )

◆ node_noise_tex_fbm_1d()

void node_noise_tex_fbm_1d ( float3 ,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_fbm_2d()

void node_noise_tex_fbm_2d ( float3 co,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_fbm_3d()

void node_noise_tex_fbm_3d ( float3 co,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_fbm_4d()

void node_noise_tex_fbm_4d ( float3 co,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_hetero_terrain_1d()

void node_noise_tex_hetero_terrain_1d ( float3 ,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_hetero_terrain_2d()

void node_noise_tex_hetero_terrain_2d ( float3 co,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_hetero_terrain_3d()

void node_noise_tex_hetero_terrain_3d ( float3 co,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_hetero_terrain_4d()

void node_noise_tex_hetero_terrain_4d ( float3 co,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_hybrid_multi_fractal_1d()

void node_noise_tex_hybrid_multi_fractal_1d ( float3 ,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_hybrid_multi_fractal_2d()

void node_noise_tex_hybrid_multi_fractal_2d ( float3 co,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_hybrid_multi_fractal_3d()

void node_noise_tex_hybrid_multi_fractal_3d ( float3 co,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_hybrid_multi_fractal_4d()

void node_noise_tex_hybrid_multi_fractal_4d ( float3 co,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_multi_fractal_1d()

void node_noise_tex_multi_fractal_1d ( float3 ,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_multi_fractal_2d()

void node_noise_tex_multi_fractal_2d ( float3 co,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_multi_fractal_3d()

void node_noise_tex_multi_fractal_3d ( float3 co,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_multi_fractal_4d()

void node_noise_tex_multi_fractal_4d ( float3 co,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_ridged_multi_fractal_1d()

void node_noise_tex_ridged_multi_fractal_1d ( float3 ,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_ridged_multi_fractal_2d()

void node_noise_tex_ridged_multi_fractal_2d ( float3 co,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_ridged_multi_fractal_3d()

void node_noise_tex_ridged_multi_fractal_3d ( float3 co,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ node_noise_tex_ridged_multi_fractal_4d()

void node_noise_tex_ridged_multi_fractal_4d ( float3 co,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

◆ noise_fractal_distorted()

template<typename T, typename NoiseT>
void noise_fractal_distorted ( T p,
float detail,
float roughness,
float lacunarity,
float offset,
float gain,
float distortion,
float normalize,
float compute_color,
float & value,
float4 & color )

Definition at line 221 of file gpu_shader_material_tex_noise.bsl.hh.

References clamp(), color_seed_offset(), distort_point(), max, noise_fractal_distorted(), norm(), normalize, random_offset(), and T.

Referenced by node_noise_tex_fbm_1d(), node_noise_tex_fbm_2d(), node_noise_tex_fbm_3d(), node_noise_tex_fbm_4d(), node_noise_tex_hetero_terrain_1d(), node_noise_tex_hetero_terrain_2d(), node_noise_tex_hetero_terrain_3d(), node_noise_tex_hetero_terrain_4d(), node_noise_tex_hybrid_multi_fractal_1d(), node_noise_tex_hybrid_multi_fractal_2d(), node_noise_tex_hybrid_multi_fractal_3d(), node_noise_tex_hybrid_multi_fractal_4d(), node_noise_tex_multi_fractal_1d(), node_noise_tex_multi_fractal_2d(), node_noise_tex_multi_fractal_3d(), node_noise_tex_multi_fractal_4d(), node_noise_tex_ridged_multi_fractal_1d(), node_noise_tex_ridged_multi_fractal_2d(), node_noise_tex_ridged_multi_fractal_3d(), node_noise_tex_ridged_multi_fractal_4d(), noise_fractal_distorted(), noise_fractal_distorted< float, NoiseFBM< float > >(), noise_fractal_distorted< float, NoiseHeteroTerrain< float > >(), noise_fractal_distorted< float, NoiseHybridMultiFractal< float > >(), noise_fractal_distorted< float, NoiseMultiFractal< float > >(), noise_fractal_distorted< float, NoiseRidgedMultiFractal< float > >(), noise_fractal_distorted< float2, NoiseFBM< float2 > >(), noise_fractal_distorted< float2, NoiseHeteroTerrain< float2 > >(), noise_fractal_distorted< float2, NoiseHybridMultiFractal< float2 > >(), noise_fractal_distorted< float2, NoiseMultiFractal< float2 > >(), noise_fractal_distorted< float2, NoiseRidgedMultiFractal< float2 > >(), noise_fractal_distorted< float3, NoiseFBM< float3 > >(), noise_fractal_distorted< float3, NoiseHeteroTerrain< float3 > >(), noise_fractal_distorted< float3, NoiseHybridMultiFractal< float3 > >(), noise_fractal_distorted< float3, NoiseMultiFractal< float3 > >(), noise_fractal_distorted< float3, NoiseRidgedMultiFractal< float3 > >(), noise_fractal_distorted< float4, NoiseFBM< float4 > >(), noise_fractal_distorted< float4, NoiseHeteroTerrain< float4 > >(), noise_fractal_distorted< float4, NoiseHybridMultiFractal< float4 > >(), noise_fractal_distorted< float4, NoiseMultiFractal< float4 > >(), and noise_fractal_distorted< float4, NoiseRidgedMultiFractal< float4 > >().

◆ noise_fractal_distorted< float, NoiseFBM< float > >()

template void noise_fractal_distorted< float, NoiseFBM< float > > ( float ,
float ,
float ,
float ,
float ,
float ,
float ,
float ,
float ,
float & ,
float4 &  )

References float, and noise_fractal_distorted().

◆ noise_fractal_distorted< float, NoiseHeteroTerrain< float > >()

◆ noise_fractal_distorted< float, NoiseHybridMultiFractal< float > >()

◆ noise_fractal_distorted< float, NoiseMultiFractal< float > >()

◆ noise_fractal_distorted< float, NoiseRidgedMultiFractal< float > >()

◆ noise_fractal_distorted< float2, NoiseFBM< float2 > >()

◆ noise_fractal_distorted< float2, NoiseHeteroTerrain< float2 > >()

◆ noise_fractal_distorted< float2, NoiseHybridMultiFractal< float2 > >()

◆ noise_fractal_distorted< float2, NoiseMultiFractal< float2 > >()

◆ noise_fractal_distorted< float2, NoiseRidgedMultiFractal< float2 > >()

◆ noise_fractal_distorted< float3, NoiseFBM< float3 > >()

◆ noise_fractal_distorted< float3, NoiseHeteroTerrain< float3 > >()

◆ noise_fractal_distorted< float3, NoiseHybridMultiFractal< float3 > >()

◆ noise_fractal_distorted< float3, NoiseMultiFractal< float3 > >()

◆ noise_fractal_distorted< float3, NoiseRidgedMultiFractal< float3 > >()

◆ noise_fractal_distorted< float4, NoiseFBM< float4 > >()

◆ noise_fractal_distorted< float4, NoiseHeteroTerrain< float4 > >()

◆ noise_fractal_distorted< float4, NoiseHybridMultiFractal< float4 > >()

◆ noise_fractal_distorted< float4, NoiseMultiFractal< float4 > >()

◆ noise_fractal_distorted< float4, NoiseRidgedMultiFractal< float4 > >()

◆ random_float_offset()

◆ random_offset()

◆ random_offset< float >()

template<>
float random_offset< float > ( float seed)

Definition at line 52 of file gpu_shader_material_tex_noise.bsl.hh.

References random_float_offset(), and random_offset().

◆ random_offset< float2 >()

template<>
float2 random_offset< float2 > ( float seed)

Definition at line 56 of file gpu_shader_material_tex_noise.bsl.hh.

References random_offset(), and random_vec2_offset().

◆ random_offset< float3 >()

template<>
float3 random_offset< float3 > ( float seed)

Definition at line 60 of file gpu_shader_material_tex_noise.bsl.hh.

References random_offset(), and random_vec3_offset().

◆ random_offset< float4 >()

template<>
float4 random_offset< float4 > ( float seed)

Definition at line 64 of file gpu_shader_material_tex_noise.bsl.hh.

References random_offset(), and random_vec4_offset().

◆ random_vec2_offset()

float2 random_vec2_offset ( float seed)

◆ random_vec3_offset()

float3 random_vec3_offset ( float seed)

◆ random_vec4_offset()

float4 random_vec4_offset ( float seed)