Blender
V3.3
|
Voronoi Noise | |
Original code is under the MIT License, Copyright (c) 2013 Inigo Quilez. Smooth Voronoi: Distance To Edge based on:
With optimization to change -2..2 scan window to -1..1 for better performance, as explained in https://www.shadertoy.com/view/llG3zy. | |
enum | { NOISE_SHD_VORONOI_EUCLIDEAN = 0 , NOISE_SHD_VORONOI_MANHATTAN = 1 , NOISE_SHD_VORONOI_CHEBYCHEV = 2 , NOISE_SHD_VORONOI_MINKOWSKI = 3 } |
void | voronoi_f1 (float w, float randomness, float *r_distance, float3 *r_color, float *r_w) |
void | voronoi_smooth_f1 (float w, float smoothness, float randomness, float *r_distance, float3 *r_color, float *r_w) |
void | voronoi_f2 (float w, float randomness, float *r_distance, float3 *r_color, float *r_w) |
void | voronoi_distance_to_edge (float w, float randomness, float *r_distance) |
void | voronoi_n_sphere_radius (float w, float randomness, float *r_radius) |
void | voronoi_f1 (const float2 coord, float exponent, float randomness, int metric, float *r_distance, float3 *r_color, float2 *r_position) |
void | voronoi_smooth_f1 (const float2 coord, float smoothness, float exponent, float randomness, int metric, float *r_distance, float3 *r_color, float2 *r_position) |
void | voronoi_f2 (const float2 coord, float exponent, float randomness, int metric, float *r_distance, float3 *r_color, float2 *r_position) |
void | voronoi_distance_to_edge (const float2 coord, float randomness, float *r_distance) |
void | voronoi_n_sphere_radius (const float2 coord, float randomness, float *r_radius) |
void | voronoi_f1 (const float3 coord, float exponent, float randomness, int metric, float *r_distance, float3 *r_color, float3 *r_position) |
void | voronoi_smooth_f1 (const float3 coord, float smoothness, float exponent, float randomness, int metric, float *r_distance, float3 *r_color, float3 *r_position) |
void | voronoi_f2 (const float3 coord, float exponent, float randomness, int metric, float *r_distance, float3 *r_color, float3 *r_position) |
void | voronoi_distance_to_edge (const float3 coord, float randomness, float *r_distance) |
void | voronoi_n_sphere_radius (const float3 coord, float randomness, float *r_radius) |
void | voronoi_f1 (const float4 coord, float exponent, float randomness, int metric, float *r_distance, float3 *r_color, float4 *r_position) |
void | voronoi_smooth_f1 (const float4 coord, float smoothness, float exponent, float randomness, int metric, float *r_distance, float3 *r_color, float4 *r_position) |
void | voronoi_f2 (const float4 coord, float exponent, float randomness, int metric, float *r_distance, float3 *r_color, float4 *r_position) |
void | voronoi_distance_to_edge (const float4 coord, float randomness, float *r_distance) |
void | voronoi_n_sphere_radius (const float4 coord, float randomness, float *r_radius) |
BLI_INLINE float | voronoi_distance (const float a, const float b) |
static float | voronoi_distance (const float2 a, const float2 b, const int metric, const float exponent) |
static float | voronoi_distance (const float3 a, const float3 b, const int metric, const float exponent) |
static float | voronoi_distance (const float4 a, const float4 b, const int metric, const float exponent) |
anonymous enum |
BLI_INLINE float blender::noise::fade | ( | float | t | ) |
BLI_INLINE uint32_t blender::noise::float_as_uint | ( | float | f | ) |
Definition at line 119 of file noise.cc.
Referenced by hash_float().
BLI_INLINE float blender::noise::floor_fraction | ( | float | x, |
int & | i | ||
) |
Definition at line 67 of file noise.cc.
References Freestyle::a, usdtokens::b(), Freestyle::c, and hash_bit_final().
Referenced by blender::nodes::node_geo_distribute_points_on_faces_cc::compute_attribute_outputs(), hash_float(), hash_to_float(), noise_grad(), perlin_noise(), and blender::nodes::node_geo_distribute_points_on_faces_cc::sample_mesh_surface().
Definition at line 78 of file noise.cc.
References Freestyle::a, usdtokens::b(), Freestyle::c, and hash_bit_final().
Definition at line 90 of file noise.cc.
References Freestyle::a, usdtokens::b(), Freestyle::c, and hash_bit_final().
Definition at line 103 of file noise.cc.
References Freestyle::a, usdtokens::b(), Freestyle::c, hash_bit_final(), and hash_bit_mix().
BLI_INLINE void blender::noise::hash_bit_final | ( | uint32_t & | a, |
uint32_t & | b, | ||
uint32_t & | c | ||
) |
Definition at line 49 of file noise.cc.
References Freestyle::a, usdtokens::b(), Freestyle::c, and hash_bit_rotate().
Referenced by hash().
BLI_INLINE void blender::noise::hash_bit_mix | ( | uint32_t & | a, |
uint32_t & | b, | ||
uint32_t & | c | ||
) |
Definition at line 27 of file noise.cc.
References Freestyle::a, usdtokens::b(), Freestyle::c, and hash_bit_rotate().
Referenced by hash().
BLI_INLINE uint32_t blender::noise::hash_bit_rotate | ( | uint32_t | x, |
uint32_t | k | ||
) |
Definition at line 22 of file noise.cc.
References x.
Referenced by hash_bit_final(), and hash_bit_mix().
Definition at line 129 of file noise.cc.
References float_as_uint(), and hash().
Referenced by blender::nodes::node_geo_distribute_points_on_faces_cc::compute_attribute_outputs(), and hash_float_to_float().
Definition at line 134 of file noise.cc.
References float_as_uint(), and hash().
Definition at line 139 of file noise.cc.
References float_as_uint(), and hash().
Definition at line 144 of file noise.cc.
References float_as_uint(), and hash().
Definition at line 178 of file noise.cc.
References hash_float(), and uint_to_float_01().
Referenced by blender::nodes::node_shader_tex_white_noise_cc::WhiteNoiseFunction::call(), hash_float_to_float2(), hash_float_to_float3(), hash_float_to_float4(), random_float2_offset(), random_float3_offset(), random_float4_offset(), random_float_offset(), random_float_offset(), svm_node_tex_white_noise(), blender::nodes::node_geo_distribute_points_on_faces_cc::update_elimination_mask_based_on_density_factors(), voronoi_distance_to_edge(), voronoi_distance_to_edge_1d(), voronoi_f1(), voronoi_f1_1d(), voronoi_f2(), voronoi_f2_1d(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius_1d(), voronoi_smooth_f1(), and voronoi_smooth_f1_1d().
Definition at line 183 of file noise.cc.
References hash_float(), and uint_to_float_01().
Definition at line 188 of file noise.cc.
References hash_float(), and uint_to_float_01().
Definition at line 193 of file noise.cc.
References hash_float(), and uint_to_float_01().
Definition at line 198 of file noise.cc.
References hash_float_to_float().
Referenced by voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), and voronoi_smooth_f1().
Definition at line 203 of file noise.cc.
References hash_float_to_float().
Referenced by blender::nodes::node_shader_tex_white_noise_cc::WhiteNoiseFunction::call(), voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), and voronoi_smooth_f1().
Definition at line 210 of file noise.cc.
References hash_float_to_float().
Definition at line 217 of file noise.cc.
References hash_float_to_float().
Definition at line 224 of file noise.cc.
References hash_float_to_float().
Definition at line 231 of file noise.cc.
References hash_float_to_float().
Referenced by voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), and voronoi_smooth_f1().
Definition at line 156 of file noise.cc.
References hash(), and uint_to_float_01().
Referenced by blender::nodes::node_fn_random_value_cc::fn_node_random_value_build_multi_function().
Definition at line 161 of file noise.cc.
References hash(), and uint_to_float_01().
Definition at line 166 of file noise.cc.
References hash(), and uint_to_float_01().
Definition at line 171 of file noise.cc.
References hash(), and uint_to_float_01().
BLI_INLINE float blender::noise::mix | ( | float | v0, |
float | v1, | ||
float | x | ||
) |
Definition at line 252 of file noise.cc.
Referenced by mix(), perlin_noise(), and voronoi_smooth_f1().
1D Musgrave fBm
H | fractal increment parameter. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
Definition at line 720 of file noise.cc.
References CLAMPIS, floorf, H, perlin_signed(), and pow().
Referenced by blender::nodes::node_shader_tex_musgrave_cc::MusgraveFunction::call().
float blender::noise::musgrave_hetero_terrain | ( | const float2 | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset | ||
) |
2D Musgrave Heterogeneous Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 926 of file noise.cc.
References CLAMPIS, floorf, H, offset, perlin_signed(), and pow().
float blender::noise::musgrave_hetero_terrain | ( | const float3 | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset | ||
) |
3D Musgrave Heterogeneous Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 1083 of file noise.cc.
References CLAMPIS, floorf, H, offset, perlin_signed(), and pow().
float blender::noise::musgrave_hetero_terrain | ( | const float4 | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset | ||
) |
4D Musgrave Heterogeneous Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 1240 of file noise.cc.
References CLAMPIS, floorf, H, offset, perlin_signed(), and pow().
float blender::noise::musgrave_hetero_terrain | ( | float | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset | ||
) |
1D Musgrave Heterogeneous Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 772 of file noise.cc.
References CLAMPIS, floorf, H, offset, perlin_signed(), and pow().
Referenced by blender::nodes::node_shader_tex_musgrave_cc::MusgraveFunction::call().
float blender::noise::musgrave_hybrid_multi_fractal | ( | const float2 | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset, | ||
float | gain | ||
) |
2D Hybrid Additive/Multiplicative Multi-fractal Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 958 of file noise.cc.
References CLAMPIS, floorf, H, offset, perlin_signed(), and pow().
float blender::noise::musgrave_hybrid_multi_fractal | ( | const float3 | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset, | ||
float | gain | ||
) |
3D Hybrid Additive/Multiplicative Multi-fractal Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 1115 of file noise.cc.
References CLAMPIS, floorf, H, offset, perlin_signed(), and pow().
float blender::noise::musgrave_hybrid_multi_fractal | ( | const float4 | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset, | ||
float | gain | ||
) |
4D Hybrid Additive/Multiplicative Multi-fractal Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 1272 of file noise.cc.
References CLAMPIS, floorf, H, offset, perlin_signed(), and pow().
float blender::noise::musgrave_hybrid_multi_fractal | ( | float | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset, | ||
float | gain | ||
) |
1D Hybrid Additive/Multiplicative Multi-fractal Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 803 of file noise.cc.
References CLAMPIS, floorf, H, offset, perlin_signed(), and pow().
Referenced by blender::nodes::node_shader_tex_musgrave_cc::MusgraveFunction::call().
1D Musgrave Multi-fractal
H | highest fractal dimension. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
Definition at line 747 of file noise.cc.
References CLAMPIS, floorf, H, perlin_signed(), and pow().
Referenced by blender::nodes::node_shader_tex_musgrave_cc::MusgraveFunction::call().
float blender::noise::musgrave_ridged_multi_fractal | ( | const float2 | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset, | ||
float | gain | ||
) |
2D Ridged Multi-fractal Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 998 of file noise.cc.
References blender::math::abs(), CLAMPIS, H, offset, perlin_signed(), and pow().
float blender::noise::musgrave_ridged_multi_fractal | ( | const float3 | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset, | ||
float | gain | ||
) |
3D Ridged Multi-fractal Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 1155 of file noise.cc.
References blender::math::abs(), CLAMPIS, H, offset, perlin_signed(), and pow().
float blender::noise::musgrave_ridged_multi_fractal | ( | const float4 | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset, | ||
float | gain | ||
) |
4D Ridged Multi-fractal Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 1312 of file noise.cc.
References blender::math::abs(), CLAMPIS, H, offset, perlin_signed(), and pow().
float blender::noise::musgrave_ridged_multi_fractal | ( | float | co, |
float | H, | ||
float | lacunarity, | ||
float | octaves, | ||
float | offset, | ||
float | gain | ||
) |
1D Ridged Multi-fractal Terrain
H | fractal dimension of the roughest area. |
lacunarity | gap between successive frequencies. |
octaves | number of frequencies in the fBm. |
offset | raises the terrain from ‘sea level’. |
Definition at line 843 of file noise.cc.
References blender::math::abs(), CLAMPIS, H, offset, perlin_signed(), and pow().
Referenced by blender::nodes::node_shader_tex_musgrave_cc::MusgraveFunction::call().
BLI_INLINE float blender::noise::negate_if | ( | float | value, |
uint32_t | condition | ||
) |
Definition at line 343 of file noise.cc.
Referenced by noise_grad().
BLI_INLINE float blender::noise::noise_grad | ( | uint32_t | hash, |
float | x | ||
) |
Definition at line 348 of file noise.cc.
References usdtokens::g(), hash(), negate_if(), and x.
Referenced by perlin_noise().
BLI_INLINE float blender::noise::noise_grad | ( | uint32_t | hash, |
float | x, | ||
float | y | ||
) |
Definition at line 511 of file noise.cc.
References perlin_signed().
Referenced by perlin_fractal_template().
Definition at line 516 of file noise.cc.
References perlin_signed().
Definition at line 521 of file noise.cc.
References perlin_signed().
Definition at line 526 of file noise.cc.
References perlin_signed().
BLI_INLINE float blender::noise::perlin_distortion | ( | float | position, |
float | strength | ||
) |
Definition at line 615 of file noise.cc.
References perlin_signed(), and random_float_offset().
Referenced by perlin_float3_fractal_distorted(), and perlin_fractal_distorted().
BLI_INLINE float2 blender::noise::perlin_distortion | ( | float2 | position, |
float | strength | ||
) |
Definition at line 620 of file noise.cc.
References perlin_signed(), and random_float2_offset().
BLI_INLINE float3 blender::noise::perlin_distortion | ( | float3 | position, |
float | strength | ||
) |
Definition at line 626 of file noise.cc.
References perlin_signed(), and random_float3_offset().
BLI_INLINE float4 blender::noise::perlin_distortion | ( | float4 | position, |
float | strength | ||
) |
Definition at line 633 of file noise.cc.
References perlin_signed(), and random_float4_offset().
float3 blender::noise::perlin_float3_fractal_distorted | ( | float | position, |
float | octaves, | ||
float | roughness, | ||
float | distortion | ||
) |
Definition at line 670 of file noise.cc.
References perlin_distortion(), perlin_fractal(), random_float_offset(), and usdtokens::roughness().
Referenced by blender::nodes::node_shader_tex_noise_cc::NoiseFunction::call().
float3 blender::noise::perlin_float3_fractal_distorted | ( | float2 | position, |
float | octaves, | ||
float | roughness, | ||
float | distortion | ||
) |
Definition at line 681 of file noise.cc.
References perlin_distortion(), perlin_fractal(), random_float2_offset(), and usdtokens::roughness().
float3 blender::noise::perlin_float3_fractal_distorted | ( | float3 | position, |
float | octaves, | ||
float | roughness, | ||
float | distortion | ||
) |
Definition at line 692 of file noise.cc.
References perlin_distortion(), perlin_fractal(), random_float3_offset(), and usdtokens::roughness().
float3 blender::noise::perlin_float3_fractal_distorted | ( | float4 | position, |
float | octaves, | ||
float | roughness, | ||
float | distortion | ||
) |
Definition at line 703 of file noise.cc.
References perlin_distortion(), perlin_fractal(), random_float4_offset(), and usdtokens::roughness().
Definition at line 560 of file noise.cc.
References perlin_fractal_template(), and usdtokens::roughness().
Referenced by blender::nodes::node_shader_tex_wave_cc::WaveFunction::call(), perlin_float3_fractal_distorted(), and perlin_fractal_distorted().
Definition at line 565 of file noise.cc.
References perlin_fractal_template(), and usdtokens::roughness().
Definition at line 570 of file noise.cc.
References perlin_fractal_template(), and usdtokens::roughness().
Definition at line 575 of file noise.cc.
References perlin_fractal_template(), and usdtokens::roughness().
float blender::noise::perlin_fractal_distorted | ( | float | position, |
float | octaves, | ||
float | roughness, | ||
float | distortion | ||
) |
Definition at line 643 of file noise.cc.
References perlin_distortion(), perlin_fractal(), and usdtokens::roughness().
Referenced by blender::nodes::node_shader_tex_noise_cc::NoiseFunction::call().
float blender::noise::perlin_fractal_distorted | ( | float2 | position, |
float | octaves, | ||
float | roughness, | ||
float | distortion | ||
) |
Definition at line 649 of file noise.cc.
References perlin_distortion(), perlin_fractal(), and usdtokens::roughness().
float blender::noise::perlin_fractal_distorted | ( | float3 | position, |
float | octaves, | ||
float | roughness, | ||
float | distortion | ||
) |
Definition at line 655 of file noise.cc.
References perlin_distortion(), perlin_fractal(), and usdtokens::roughness().
float blender::noise::perlin_fractal_distorted | ( | float4 | position, |
float | octaves, | ||
float | roughness, | ||
float | distortion | ||
) |
Definition at line 661 of file noise.cc.
References perlin_distortion(), perlin_fractal(), and usdtokens::roughness().
float blender::noise::perlin_fractal_template | ( | T | position, |
float | octaves, | ||
float | roughness | ||
) |
Definition at line 533 of file noise.cc.
References CLAMPIS, blender::math::floor(), perlin(), usdtokens::roughness(), sum(), and t.
Referenced by perlin_fractal().
BLI_INLINE float blender::noise::perlin_noise | ( | float | position | ) |
Definition at line 387 of file noise.cc.
References fade(), floor_fraction(), hash(), mix(), noise_grad(), r, and X.
Referenced by perlin_signed().
BLI_INLINE float blender::noise::perlin_noise | ( | float2 | position | ) |
BLI_INLINE float blender::noise::perlin_noise | ( | float3 | position | ) |
BLI_INLINE float blender::noise::perlin_noise | ( | float4 | position | ) |
Definition at line 489 of file noise.cc.
References perlin_noise().
Referenced by musgrave_fBm(), musgrave_hetero_terrain(), musgrave_hybrid_multi_fractal(), musgrave_multi_fractal(), musgrave_ridged_multi_fractal(), perlin(), and perlin_distortion().
Definition at line 494 of file noise.cc.
References perlin_noise().
Definition at line 499 of file noise.cc.
References perlin_noise().
Definition at line 504 of file noise.cc.
References perlin_noise().
BLI_INLINE float2 blender::noise::random_float2_offset | ( | float | seed | ) |
Definition at line 592 of file noise.cc.
References hash_float_to_float(), and seed.
Referenced by perlin_distortion(), and perlin_float3_fractal_distorted().
BLI_INLINE float3 blender::noise::random_float3_offset | ( | float | seed | ) |
Definition at line 598 of file noise.cc.
References hash_float_to_float(), and seed.
Referenced by perlin_distortion(), and perlin_float3_fractal_distorted().
BLI_INLINE float4 blender::noise::random_float4_offset | ( | float | seed | ) |
Definition at line 605 of file noise.cc.
References hash_float_to_float(), and seed.
Referenced by perlin_distortion(), and perlin_float3_fractal_distorted().
BLI_INLINE float blender::noise::random_float_offset | ( | float | seed | ) |
Definition at line 587 of file noise.cc.
References hash_float_to_float(), and seed.
Referenced by perlin_distortion(), and perlin_float3_fractal_distorted().
BLI_INLINE float blender::noise::uint_to_float_01 | ( | uint32_t | k | ) |
Definition at line 151 of file noise.cc.
Referenced by hash_float_to_float(), and hash_to_float().
BLI_INLINE float blender::noise::voronoi_distance | ( | const float | a, |
const float | b | ||
) |
Definition at line 1375 of file noise.cc.
References Freestyle::a, blender::math::abs(), and usdtokens::b().
Referenced by voronoi_f1(), voronoi_f2(), and voronoi_smooth_f1().
|
static |
Definition at line 1554 of file noise.cc.
References Freestyle::a, blender::math::abs(), usdtokens::b(), BLI_assert_unreachable, blender::math::distance(), max, NOISE_SHD_VORONOI_CHEBYCHEV, NOISE_SHD_VORONOI_EUCLIDEAN, NOISE_SHD_VORONOI_MANHATTAN, NOISE_SHD_VORONOI_MINKOWSKI, and pow().
|
static |
Definition at line 1798 of file noise.cc.
References Freestyle::a, blender::math::abs(), usdtokens::b(), BLI_assert_unreachable, blender::math::distance(), max, NOISE_SHD_VORONOI_CHEBYCHEV, NOISE_SHD_VORONOI_EUCLIDEAN, NOISE_SHD_VORONOI_MANHATTAN, NOISE_SHD_VORONOI_MINKOWSKI, and pow().
|
static |
Definition at line 2059 of file noise.cc.
References Freestyle::a, blender::math::abs(), usdtokens::b(), BLI_assert_unreachable, blender::math::distance(), max, NOISE_SHD_VORONOI_CHEBYCHEV, NOISE_SHD_VORONOI_EUCLIDEAN, NOISE_SHD_VORONOI_MANHATTAN, NOISE_SHD_VORONOI_MINKOWSKI, and pow().
void blender::noise::voronoi_distance_to_edge | ( | const float2 | coord, |
float | randomness, | ||
float * | r_distance | ||
) |
Definition at line 1715 of file noise.cc.
References blender::math::dot(), blender::math::floor(), hash_float_to_float2(), min, and blender::math::normalize().
void blender::noise::voronoi_distance_to_edge | ( | const float3 | coord, |
float | randomness, | ||
float * | r_distance | ||
) |
Definition at line 1968 of file noise.cc.
References blender::math::dot(), blender::math::floor(), hash_float_to_float3(), min, and blender::math::normalize().
void blender::noise::voronoi_distance_to_edge | ( | const float4 | coord, |
float | randomness, | ||
float * | r_distance | ||
) |
Definition at line 2240 of file noise.cc.
References blender::math::dot(), blender::math::floor(), hash_float_to_float4(), min, and blender::math::normalize().
Definition at line 1498 of file noise.cc.
References blender::math::abs(), floorf, hash_float_to_float(), min, and w().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiEdgeFunction::call().
void blender::noise::voronoi_f1 | ( | const float2 | coord, |
float | exponent, | ||
float | randomness, | ||
int | metric, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float2 * | r_position | ||
) |
Definition at line 1577 of file noise.cc.
References blender::math::floor(), hash_float_to_float2(), hash_float_to_float3(), and voronoi_distance().
void blender::noise::voronoi_f1 | ( | const float3 | coord, |
float | exponent, | ||
float | randomness, | ||
int | metric, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float3 * | r_position | ||
) |
Definition at line 1822 of file noise.cc.
References blender::math::floor(), hash_float_to_float3(), and voronoi_distance().
void blender::noise::voronoi_f1 | ( | const float4 | coord, |
float | exponent, | ||
float | randomness, | ||
int | metric, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float4 * | r_position | ||
) |
Definition at line 2085 of file noise.cc.
References blender::math::floor(), hash_float_to_float3(), hash_float_to_float4(), and voronoi_distance().
void blender::noise::voronoi_f1 | ( | float | w, |
float | randomness, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float * | r_w | ||
) |
Definition at line 1380 of file noise.cc.
References floorf, hash_float_to_float(), hash_float_to_float3(), voronoi_distance(), and w().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiMinowskiFunction::call(), and blender::nodes::node_shader_tex_voronoi_cc::VoronoiMetricFunction::call().
void blender::noise::voronoi_f2 | ( | const float2 | coord, |
float | exponent, | ||
float | randomness, | ||
int | metric, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float2 * | r_position | ||
) |
Definition at line 1665 of file noise.cc.
References blender::math::floor(), hash_float_to_float2(), hash_float_to_float3(), and voronoi_distance().
void blender::noise::voronoi_f2 | ( | const float3 | coord, |
float | exponent, | ||
float | randomness, | ||
int | metric, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float3 * | r_position | ||
) |
Definition at line 1916 of file noise.cc.
References blender::math::floor(), hash_float_to_float3(), and voronoi_distance().
void blender::noise::voronoi_f2 | ( | const float4 | coord, |
float | exponent, | ||
float | randomness, | ||
int | metric, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float4 * | r_position | ||
) |
Definition at line 2185 of file noise.cc.
References blender::math::floor(), hash_float_to_float3(), hash_float_to_float4(), and voronoi_distance().
void blender::noise::voronoi_f2 | ( | float | w, |
float | randomness, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float * | r_w | ||
) |
Definition at line 1456 of file noise.cc.
References floorf, hash_float_to_float(), hash_float_to_float3(), voronoi_distance(), and w().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiMinowskiFunction::call(), and blender::nodes::node_shader_tex_voronoi_cc::VoronoiMetricFunction::call().
void blender::noise::voronoi_n_sphere_radius | ( | const float2 | coord, |
float | randomness, | ||
float * | r_radius | ||
) |
Definition at line 1754 of file noise.cc.
References blender::math::distance(), blender::math::floor(), and hash_float_to_float2().
void blender::noise::voronoi_n_sphere_radius | ( | const float3 | coord, |
float | randomness, | ||
float * | r_radius | ||
) |
Definition at line 2011 of file noise.cc.
References blender::math::distance(), blender::math::floor(), and hash_float_to_float3().
void blender::noise::voronoi_n_sphere_radius | ( | const float4 | coord, |
float | randomness, | ||
float * | r_radius | ||
) |
Definition at line 2289 of file noise.cc.
References blender::math::distance(), blender::math::floor(), and hash_float_to_float4().
Definition at line 1514 of file noise.cc.
References blender::math::abs(), floorf, hash_float_to_float(), and w().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiEdgeFunction::call().
void blender::noise::voronoi_smooth_f1 | ( | const float2 | coord, |
float | smoothness, | ||
float | exponent, | ||
float | randomness, | ||
int | metric, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float2 * | r_position | ||
) |
Definition at line 1615 of file noise.cc.
References blender::math::floor(), hash_float_to_float2(), hash_float_to_float3(), blender::math::interpolate(), max_ff(), mix(), smoothstep(), and voronoi_distance().
void blender::noise::voronoi_smooth_f1 | ( | const float3 | coord, |
float | smoothness, | ||
float | exponent, | ||
float | randomness, | ||
int | metric, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float3 * | r_position | ||
) |
Definition at line 1863 of file noise.cc.
References blender::math::floor(), hash_float_to_float3(), blender::math::interpolate(), max_ff(), mix(), smoothstep(), and voronoi_distance().
void blender::noise::voronoi_smooth_f1 | ( | const float4 | coord, |
float | smoothness, | ||
float | exponent, | ||
float | randomness, | ||
int | metric, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float4 * | r_position | ||
) |
Definition at line 2129 of file noise.cc.
References blender::math::floor(), hash_float_to_float3(), hash_float_to_float4(), blender::math::interpolate(), max_ff(), mix(), smoothstep(), and voronoi_distance().
void blender::noise::voronoi_smooth_f1 | ( | float | w, |
float | smoothness, | ||
float | randomness, | ||
float * | r_distance, | ||
float3 * | r_color, | ||
float * | r_w | ||
) |
Definition at line 1411 of file noise.cc.
References floorf, hash_float_to_float(), hash_float_to_float3(), blender::math::interpolate(), max_ff(), mix(), smoothstep(), voronoi_distance(), and w().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiMinowskiFunction::call(), and blender::nodes::node_shader_tex_voronoi_cc::VoronoiMetricFunction::call().