|
Blender V5.3
|
Classes | |
| struct | VoronoiParams |
| struct | VoronoiOutput |
Perlin Noise | |
Perlin, Ken. "Improving noise." Proceedings of the 29th annual conference on Computer graphics and interactive techniques. 2002. This implementation is functionally identical to the implementations in EEVEE, OSL, and SVM. So any changes should be applied in all relevant implementations. | |
| enum | { NOISE_SHD_PERLIN_MULTIFRACTAL = 0 , NOISE_SHD_PERLIN_FBM = 1 , NOISE_SHD_PERLIN_HYBRID_MULTIFRACTAL = 2 , NOISE_SHD_PERLIN_RIDGED_MULTIFRACTAL = 3 , NOISE_SHD_PERLIN_HETERO_TERRAIN = 4 } |
| float | perlin_signed (float position) |
| float | perlin_signed (float2 position) |
| float | perlin_signed (float3 position) |
| float | perlin_signed (float4 position) |
| float | perlin (float position) |
| float | perlin (float2 position) |
| float | perlin (float3 position) |
| float | perlin (float4 position) |
| template<typename T> | |
| float | perlin_fbm (T p, float detail, float roughness, float lacunarity, bool normalize) |
| template<typename T> | |
| float | perlin_fractal_distorted (T position, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, int type, bool normalize) |
| float3 | perlin_float3_fractal_distorted (float position, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, int type, bool normalize) |
| float3 | perlin_float3_fractal_distorted (float2 position, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, int type, bool normalize) |
| float3 | perlin_float3_fractal_distorted (float3 position, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, int type, bool normalize) |
| float3 | perlin_float3_fractal_distorted (float4 position, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, int type, bool normalize) |
| template<typename T> | |
| static T | mix (T v0, T v1, float x) |
| BLI_INLINE float | mix (float v0, float v1, float v2, float v3, float x, float y) |
| BLI_INLINE float | mix (float v0, float v1, float v2, float v3, float v4, float v5, float v6, float v7, float x, float y, float z) |
| BLI_INLINE float | mix (float v0, float v1, float v2, float v3, float v4, float v5, float v6, float v7, float v8, float v9, float v10, float v11, float v12, float v13, float v14, float v15, float x, float y, float z, float w) |
| BLI_INLINE float | fade (float t) |
| BLI_INLINE float | negate_if (float value, uint32_t condition) |
| BLI_INLINE float | noise_grad (uint32_t hash, float x) |
| BLI_INLINE float | noise_grad (uint32_t hash, float x, float y) |
| BLI_INLINE float | noise_grad (uint32_t hash, float x, float y, float z) |
| BLI_INLINE float | noise_grad (uint32_t hash, float x, float y, float z, float w) |
| BLI_INLINE float | floor_fraction (float x, int &i) |
| BLI_INLINE float | perlin_noise (float position) |
| BLI_INLINE float | perlin_noise (float2 position) |
| BLI_INLINE float | perlin_noise (float3 position) |
| BLI_INLINE float | perlin_noise (float4 position) |
| template float | perlin_fbm< float3 > (float3 p, const float detail, const float roughness, const float lacunarity, const bool normalize) |
| template float | perlin_fbm< float2 > (float2 p, const float detail, const float roughness, const float lacunarity, const bool normalize) |
| template<typename T> | |
| float | perlin_multi_fractal (T p, const float detail, const float roughness, const float lacunarity) |
| template<typename T> | |
| float | perlin_hetero_terrain (T p, const float detail, const float roughness, const float lacunarity, const float offset) |
| template<typename T> | |
| float | perlin_hybrid_multi_fractal (T p, const float detail, const float roughness, const float lacunarity, const float offset, const float gain) |
| template<typename T> | |
| float | perlin_ridged_multi_fractal (T p, const float detail, const float roughness, const float lacunarity, const float offset, const float gain) |
| template<typename T> | |
| float | perlin_select (T p, float detail, float roughness, float lacunarity, float offset, float gain, int type, bool normalize) |
| BLI_INLINE float | random_float_offset (float seed) |
| BLI_INLINE float2 | random_float2_offset (float seed) |
| BLI_INLINE float3 | random_float3_offset (float seed) |
| BLI_INLINE float4 | random_float4_offset (float seed) |
| BLI_INLINE float | perlin_distortion (float position, float strength) |
| BLI_INLINE float2 | perlin_distortion (float2 position, float strength) |
| BLI_INLINE float3 | perlin_distortion (float3 position, float strength) |
| BLI_INLINE float4 | perlin_distortion (float4 position, float strength) |
| template float | perlin_fractal_distorted< float > (float position, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, int type, bool normalize) |
| template float | perlin_fractal_distorted< float2 > (float2 position, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, int type, bool normalize) |
| template float | perlin_fractal_distorted< float3 > (float3 position, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, int type, bool normalize) |
| template float | perlin_fractal_distorted< float4 > (float4 position, float detail, float roughness, float lacunarity, float offset, float gain, float distortion, int type, bool normalize) |
Gabor Noise | |
Implements Gabor noise based on the paper: Lagae, Ares, et al. "Procedural noise using sparse Gabor convolution." ACM Transactions on Graphics (TOG) 28.3 (2009): 1-10. But with the improvements from the paper: Tavernier, Vincent, et al. "Making gabor noise fast and normalized." Eurographics 2019-40th Annual Conference of the European Association for Computer Graphics. 2019. And compute the Phase and Intensity of the Gabor based on the paper: Tricard, Thibault, et al. "Procedural phasor noise." ACM Transactions on Graphics (TOG) 38.4 (2019): 1-13. | |
| static constexpr int | gabor_impulses_count = 8 |
| void | gabor (const float2 coordinates, const float scale, const float frequency, const float anisotropy, const float orientation, float *r_value, float *r_phase, float *r_intensity) |
| void | gabor (const float3 coordinates, const float scale, const float frequency, const float anisotropy, const float3 orientation, float *r_value, float *r_phase, float *r_intensity) |
| static float2 | compute_2d_gabor_kernel (const float2 position, const float frequency, const float orientation) |
| static float | compute_2d_gabor_standard_deviation () |
| static float2 | compute_2d_gabor_noise_cell (const float2 cell, const float2 position, const float frequency, const float isotropy, const float base_orientation) |
| static float2 | compute_2d_gabor_noise (const float2 coordinates, const float frequency, const float isotropy, const float base_orientation) |
| static float2 | compute_3d_gabor_kernel (const float3 position, const float frequency, const float3 orientation) |
| static float | compute_3d_gabor_standard_deviation () |
| static float3 | compute_3d_orientation (const float3 orientation, const float isotropy, const float4 seed) |
| static float2 | compute_3d_gabor_noise_cell (const float3 cell, const float3 position, const float frequency, const float isotropy, const float3 base_orientation) |
| static float2 | compute_3d_gabor_noise (const float3 coordinates, const float frequency, const float isotropy, const float3 base_orientation) |
| anonymous enum |
| anonymous enum |
| anonymous enum |
|
static |
Definition at line 2254 of file noise.cc.
References angle(), compute_2d_gabor_kernel(), blender::math::cos(), cos, distance_squared(), blender::math::dot(), blender::math::exp(), frequency, blender::math::length_squared(), position, blender::math::sin(), and sin.
Referenced by compute_2d_gabor_kernel(), and compute_2d_gabor_noise_cell().
|
static |
Definition at line 2361 of file noise.cc.
References compute_2d_gabor_noise(), compute_2d_gabor_noise_cell(), blender::math::floor(), and frequency.
Referenced by compute_2d_gabor_noise(), and gabor().
|
static |
Definition at line 2319 of file noise.cc.
References compute_2d_gabor_kernel(), compute_2d_gabor_noise_cell(), frequency, gabor_impulses_count, hash_float_to_float(), hash_float_to_float2(), blender::IndexRange::IndexRange(), blender::math::length_squared(), and position.
Referenced by compute_2d_gabor_noise(), and compute_2d_gabor_noise_cell().
|
static |
Computes the approximate standard deviation of the zero mean normal distribution representing the amplitude distribution of the noise based on Equation (9) in the original Gabor noise paper. For simplicity, the Hann window is ignored and the orientation is fixed since the variance is orientation invariant. We start integrating the squared Gabor kernel with respect to x:
Which gives:
Then we similarly integrate with respect to y to get:
Secondly, we note that the second moment of the weights distribution is 0.5 since it is a fair Bernoulli distribution. So the final standard deviation expression is square root the integral multiplied by the impulse density multiplied by the second moment.
Note however that the integral is almost constant for all frequencies larger than one, and converges to an upper limit as the frequency approaches infinity, so we replace the expression with the following limit:
To get an approximation of 0.25.
Definition at line 2306 of file noise.cc.
References compute_2d_gabor_standard_deviation(), gabor_impulses_count, and blender::math::sqrt().
Referenced by compute_2d_gabor_standard_deviation(), and gabor().
|
static |
Definition at line 2387 of file noise.cc.
References angle(), compute_3d_gabor_kernel(), blender::math::cos(), distance_squared(), blender::math::dot(), blender::math::exp(), frequency, blender::math::length_squared(), position, and blender::math::sin().
Referenced by compute_3d_gabor_kernel(), and compute_3d_gabor_noise_cell().
|
static |
Definition at line 2480 of file noise.cc.
References compute_3d_gabor_noise(), compute_3d_gabor_noise_cell(), blender::math::floor(), and frequency.
Referenced by compute_3d_gabor_noise(), and gabor().
|
static |
Definition at line 2444 of file noise.cc.
References compute_3d_gabor_kernel(), compute_3d_gabor_noise_cell(), compute_3d_orientation(), frequency, gabor_impulses_count, hash_float_to_float(), hash_float_to_float3(), blender::IndexRange::IndexRange(), blender::math::length_squared(), and position.
Referenced by compute_3d_gabor_noise(), and compute_3d_gabor_noise_cell().
|
static |
Definition at line 2406 of file noise.cc.
References compute_3d_gabor_standard_deviation(), gabor_impulses_count, and blender::math::sqrt().
Referenced by compute_3d_gabor_standard_deviation(), and gabor().
|
static |
Definition at line 2416 of file noise.cc.
References blender::math::acos(), compute_3d_orientation(), blender::math::cos(), hash_float_to_float2(), blender::math::length(), blender::math::sign(), and blender::math::sin().
Referenced by compute_3d_gabor_noise_cell(), and compute_3d_orientation().
| BLI_INLINE float blender::noise::fade | ( | float | t | ) |
Definition at line 461 of file noise.cc.
References BLI_INLINE, and fade().
Referenced by fade(), perlin_noise(), perlin_noise(), perlin_noise(), and perlin_noise().
| BLI_INLINE uint32_t blender::noise::float_as_uint | ( | float | f | ) |
Definition at line 141 of file noise.cc.
References BLI_INLINE, and float_as_uint().
Referenced by float_as_uint(), hash_float(), hash_float(), hash_float(), and hash_float().
| BLI_INLINE float blender::noise::floor_fraction | ( | float | x, |
| int & | i ) |
Definition at line 504 of file noise.cc.
References BLI_INLINE, blender::math::floor(), floor_fraction(), and blender::x.
Referenced by floor_fraction(), perlin_noise(), perlin_noise(), perlin_noise(), and perlin_noise().
| float blender::noise::fractal_voronoi_distance_to_edge | ( | const VoronoiParams & | params, |
| const T | coord ) |
Definition at line 2135 of file noise.cc.
References ceilf, blender::noise::VoronoiParams::detail, distance(), floorf, fractal_voronoi_distance_to_edge(), blender::noise::VoronoiParams::lacunarity, blender::noise::VoronoiParams::max_distance, blender::math::min(), mix(), blender::noise::VoronoiParams::normalize, blender::noise::VoronoiParams::roughness, scale(), T, and voronoi_distance_to_edge().
Referenced by fractal_voronoi_distance_to_edge(), fractal_voronoi_distance_to_edge< float >(), fractal_voronoi_distance_to_edge< float2 >(), fractal_voronoi_distance_to_edge< float3 >(), and fractal_voronoi_distance_to_edge< float4 >().
| template float blender::noise::fractal_voronoi_distance_to_edge< float > | ( | const VoronoiParams & | params, |
| const float | coord ) |
References fractal_voronoi_distance_to_edge().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiDistToEdgeFunction::call().
| template float blender::noise::fractal_voronoi_distance_to_edge< float2 > | ( | const VoronoiParams & | params, |
| const float2 | coord ) |
References fractal_voronoi_distance_to_edge().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiDistToEdgeFunction::call().
| template float blender::noise::fractal_voronoi_distance_to_edge< float3 > | ( | const VoronoiParams & | params, |
| const float3 | coord ) |
References fractal_voronoi_distance_to_edge().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiDistToEdgeFunction::call().
| template float blender::noise::fractal_voronoi_distance_to_edge< float4 > | ( | const VoronoiParams & | params, |
| const float4 | coord ) |
References fractal_voronoi_distance_to_edge().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiDistToEdgeFunction::call().
| VoronoiOutput blender::noise::fractal_voronoi_x_fx | ( | const VoronoiParams & | params, |
| const T | coord, | ||
| const bool | calc_color ) |
Definition at line 2076 of file noise.cc.
References ceilf, blender::noise::VoronoiOutput::color, blender::noise::VoronoiParams::detail, blender::noise::VoronoiOutput::distance, blender::noise::VoronoiParams::feature, floorf, fractal_voronoi_x_fx(), blender::noise::VoronoiParams::lacunarity, blender::noise::VoronoiParams::max_distance, mix(), NOISE_SHD_VORONOI_F2, NOISE_SHD_VORONOI_SMOOTH_F1, blender::noise::VoronoiParams::normalize, output, blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::roughness, blender::noise::VoronoiParams::scale, scale(), blender::noise::VoronoiParams::smoothness, T, voronoi_f1(), voronoi_f2(), and voronoi_smooth_f1().
Referenced by fractal_voronoi_x_fx(), fractal_voronoi_x_fx< float >(), fractal_voronoi_x_fx< float2 >(), fractal_voronoi_x_fx< float3 >(), and fractal_voronoi_x_fx< float4 >().
| template VoronoiOutput blender::noise::fractal_voronoi_x_fx< float > | ( | const VoronoiParams & | params, |
| const float | coord, | ||
| const bool | calc_color ) |
References fractal_voronoi_x_fx().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiMetricFunction::call().
| template VoronoiOutput blender::noise::fractal_voronoi_x_fx< float2 > | ( | const VoronoiParams & | params, |
| const float2 | coord, | ||
| const bool | calc_color ) |
References fractal_voronoi_x_fx().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiMetricFunction::call().
| template VoronoiOutput blender::noise::fractal_voronoi_x_fx< float3 > | ( | const VoronoiParams & | params, |
| const float3 | coord, | ||
| const bool | calc_color ) |
References fractal_voronoi_x_fx().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiMetricFunction::call().
| template VoronoiOutput blender::noise::fractal_voronoi_x_fx< float4 > | ( | const VoronoiParams & | params, |
| const float4 | coord, | ||
| const bool | calc_color ) |
References fractal_voronoi_x_fx().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiMetricFunction::call().
| void blender::noise::gabor | ( | const float2 | coordinates, |
| const float | scale, | ||
| const float | frequency, | ||
| const float | anisotropy, | ||
| const float | orientation, | ||
| float * | r_value, | ||
| float * | r_phase, | ||
| float * | r_intensity ) |
Definition at line 2504 of file noise.cc.
References blender::math::atan2(), blender::math::clamp(), compute_2d_gabor_noise(), compute_2d_gabor_standard_deviation(), frequency, gabor(), blender::math::length(), blender::math::max(), and scale().
Referenced by blender::nodes::node_shader_tex_gabor_cc::GaborNoiseFunction::call(), gabor(), and gabor().
| void blender::noise::gabor | ( | const float3 | coordinates, |
| const float | scale, | ||
| const float | frequency, | ||
| const float | anisotropy, | ||
| const float3 | orientation, | ||
| float * | r_value, | ||
| float * | r_phase, | ||
| float * | r_intensity ) |
Definition at line 2543 of file noise.cc.
References blender::math::atan2(), blender::math::clamp(), compute_3d_gabor_noise(), compute_3d_gabor_standard_deviation(), frequency, gabor(), blender::math::length(), blender::math::max(), blender::math::normalize(), and scale().
Definition at line 89 of file noise.cc.
References b, hash(), and hash_bit_final().
Referenced by blender::nodes::node_geo_duplicate_elements_cc::copy_hashed_ids(), blender::nodes::node_geo_duplicate_elements_cc::copy_stable_id_edges(), blender::nodes::node_geo_duplicate_elements_cc::copy_stable_id_faces(), blender::ed::sculpt_paint::CutOperationExecutor::cut_curves(), blender::geometry::gather_realize_tasks_for_instances(), blender::nodes::node_fn_hash_value_cc::get_multi_function(), hash(), hash(), hash(), hash(), hash_float(), hash_float(), hash_float(), hash_float(), hash_float(), hash_to_float(), hash_to_float(), hash_to_float(), hash_to_float(), blender::nodes::node_fn_random_value_cc::node_build_multi_function(), noise_grad(), noise_grad(), noise_grad(), noise_grad(), perlin_noise(), perlin_noise(), perlin_noise(), and perlin_noise().
Definition at line 100 of file noise.cc.
References b, hash(), and hash_bit_final().
Definition at line 112 of file noise.cc.
References b, hash(), and hash_bit_final().
Definition at line 125 of file noise.cc.
References b, hash(), 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 71 of file noise.cc.
References b, BLI_INLINE, hash_bit_final(), and hash_bit_rotate().
Referenced by hash(), hash(), hash(), hash(), and hash_bit_final().
| BLI_INLINE void blender::noise::hash_bit_mix | ( | uint32_t & | a, |
| uint32_t & | b, | ||
| uint32_t & | c ) |
Definition at line 49 of file noise.cc.
References b, BLI_INLINE, hash_bit_mix(), and hash_bit_rotate().
Referenced by hash(), and hash_bit_mix().
| BLI_INLINE uint32_t blender::noise::hash_bit_rotate | ( | uint32_t | x, |
| uint32_t | k ) |
Definition at line 44 of file noise.cc.
References BLI_INLINE, hash_bit_rotate(), and blender::x.
Referenced by hash_bit_final(), hash_bit_mix(), and hash_bit_rotate().
Definition at line 220 of file noise.cc.
References hash(), and hash_float().
Definition at line 200 of file noise.cc.
References float_as_uint(), hash(), and hash_float().
Referenced by blender::ed::sculpt_paint::CutOperationExecutor::cut_curves(), blender::nodes::node_fn_hash_value_cc::get_multi_function(), hash_float(), hash_float(), hash_float(), hash_float(), hash_float(), hash_float_to_float(), hash_float_to_float(), hash_float_to_float(), and hash_float_to_float().
Definition at line 205 of file noise.cc.
References float_as_uint(), hash(), and hash_float().
Definition at line 210 of file noise.cc.
References float_as_uint(), hash(), and hash_float().
Definition at line 215 of file noise.cc.
References float_as_uint(), hash(), and hash_float().
Definition at line 254 of file noise.cc.
References hash_float(), hash_float_to_float(), and uint_to_float_01().
Referenced by blender::nodes::node_shader_tex_white_noise_cc::WhiteNoiseFunction::call(), compute_2d_gabor_noise_cell(), compute_3d_gabor_noise_cell(), hash_float_to_float(), hash_float_to_float(), hash_float_to_float(), hash_float_to_float(), hash_float_to_float2(), hash_float_to_float2(), hash_float_to_float2(), hash_float_to_float3(), hash_float_to_float3(), hash_float_to_float3(), hash_float_to_float3(), hash_float_to_float4(), random_float2_offset(), random_float3_offset(), random_float4_offset(), random_float_offset(), blender::nodes::node_geo_distribute_points_on_faces_cc::update_elimination_mask_based_on_density_factors(), voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), and voronoi_smooth_f1().
Definition at line 259 of file noise.cc.
References hash_float(), hash_float_to_float(), and uint_to_float_01().
Definition at line 264 of file noise.cc.
References hash_float(), hash_float_to_float(), and uint_to_float_01().
Definition at line 269 of file noise.cc.
References hash_float(), hash_float_to_float(), and uint_to_float_01().
Definition at line 274 of file noise.cc.
References hash_float_to_float(), and hash_float_to_float2().
Referenced by compute_2d_gabor_noise_cell(), compute_3d_orientation(), hash_float_to_float2(), hash_float_to_float2(), and hash_float_to_float2().
Definition at line 279 of file noise.cc.
References hash_float_to_float(), and hash_float_to_float2().
Definition at line 285 of file noise.cc.
References hash_float_to_float(), and hash_float_to_float2().
Definition at line 291 of file noise.cc.
References hash_float_to_float(), and hash_float_to_float3().
Referenced by blender::nodes::node_shader_tex_white_noise_cc::WhiteNoiseFunction::call(), compute_3d_gabor_noise_cell(), hash_float_to_float3(), hash_float_to_float3(), hash_float_to_float3(), hash_float_to_float3(), voronoi_f1(), voronoi_f2(), and voronoi_smooth_f1().
Definition at line 298 of file noise.cc.
References hash_float_to_float(), and hash_float_to_float3().
Definition at line 305 of file noise.cc.
References hash_float_to_float(), and hash_float_to_float3().
Definition at line 312 of file noise.cc.
References hash_float_to_float(), and hash_float_to_float3().
Definition at line 319 of file noise.cc.
References hash_float_to_float(), and hash_float_to_float4().
Referenced by hash_float_to_float4().
Definition at line 334 of file noise.cc.
References hash_int2_to_float2(), hash_pcg2d_i(), and int_to_float_01().
Referenced by hash_int2_to_float2(), voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), and voronoi_smooth_f1().
Definition at line 353 of file noise.cc.
References hash_int2_to_float3(), and hash_int3_to_float3().
Referenced by hash_int2_to_float3(), voronoi_f1(), voronoi_f2(), and voronoi_smooth_f1().
Definition at line 340 of file noise.cc.
References hash_int3_to_float3(), hash_pcg3d_i(), and int_to_float_01().
Referenced by hash_int2_to_float3(), hash_int3_to_float3(), voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), and voronoi_smooth_f1().
Definition at line 358 of file noise.cc.
References hash_int4_to_float3(), and hash_int4_to_float4().
Referenced by hash_int4_to_float3(), voronoi_f1(), voronoi_f2(), and voronoi_smooth_f1().
Definition at line 346 of file noise.cc.
References hash_int4_to_float4(), hash_pcg4d_i(), and int_to_float_01().
Referenced by hash_int4_to_float3(), hash_int4_to_float4(), voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), and voronoi_smooth_f1().
|
inlinestatic |
Definition at line 159 of file noise.cc.
References hash_pcg2d_i(), and blender::v.
Referenced by hash_int2_to_float2(), and hash_pcg2d_i().
|
inlinestatic |
Definition at line 171 of file noise.cc.
References hash_pcg3d_i(), and blender::v.
Referenced by hash_int3_to_float3(), and hash_pcg3d_i().
|
inlinestatic |
Definition at line 185 of file noise.cc.
References hash_pcg4d_i(), and blender::v.
Referenced by hash_int4_to_float4(), and hash_pcg4d_i().
Definition at line 232 of file noise.cc.
References hash(), hash_to_float(), and uint_to_float_01().
Referenced by blender::nodes::node_composite_glare_cc::GlareOperation::execute_sun_beams_cpu(), blender::nodes::node_composite_lens_distortion_cc::get_jitter(), hash_to_float(), hash_to_float(), hash_to_float(), hash_to_float(), blender::nodes::node_fn_random_value_cc::node_build_multi_function(), and blender::ed::sculpt_paint::CutOperationExecutor::should_point_be_cut().
Definition at line 237 of file noise.cc.
References hash(), hash_to_float(), and uint_to_float_01().
Definition at line 242 of file noise.cc.
References hash(), hash_to_float(), and uint_to_float_01().
Definition at line 247 of file noise.cc.
References hash(), hash_to_float(), and uint_to_float_01().
Definition at line 329 of file noise.cc.
References float, and int_to_float_01().
Referenced by hash_int2_to_float2(), hash_int3_to_float3(), hash_int4_to_float4(), and int_to_float_01().
| BLI_INLINE float blender::noise::mix | ( | float | v0, |
| float | v1, | ||
| float | v2, | ||
| float | v3, | ||
| float | v4, | ||
| float | v5, | ||
| float | v6, | ||
| float | v7, | ||
| float | v8, | ||
| float | v9, | ||
| float | v10, | ||
| float | v11, | ||
| float | v12, | ||
| float | v13, | ||
| float | v14, | ||
| float | v15, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | w ) |
Definition at line 435 of file noise.cc.
References BLI_INLINE, mix(), blender::v2, w(), blender::x, y, and z().
| BLI_INLINE float blender::noise::mix | ( | float | v0, |
| float | v1, | ||
| float | v2, | ||
| float | v3, | ||
| float | v4, | ||
| float | v5, | ||
| float | v6, | ||
| float | v7, | ||
| float | x, | ||
| float | y, | ||
| float | z ) |
Definition at line 415 of file noise.cc.
References BLI_INLINE, mix(), blender::v2, blender::x, y, and z().
Definition at line 391 of file noise.cc.
References BLI_INLINE, mix(), blender::v2, blender::x, and y.
Definition at line 376 of file noise.cc.
References mix(), T, and blender::x.
Referenced by fractal_voronoi_distance_to_edge(), fractal_voronoi_x_fx(), mix(), mix(), mix(), mix(), perlin_fbm(), perlin_noise(), perlin_noise(), perlin_noise(), perlin_noise(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), and voronoi_smooth_f1().
| BLI_INLINE float blender::noise::negate_if | ( | float | value, |
| uint32_t | condition ) |
Definition at line 466 of file noise.cc.
References BLI_INLINE, condition, and negate_if().
Referenced by negate_if(), noise_grad(), noise_grad(), noise_grad(), and noise_grad().
| BLI_INLINE float blender::noise::noise_grad | ( | uint32_t | hash, |
| float | x ) |
Definition at line 471 of file noise.cc.
References BLI_INLINE, hash(), negate_if(), noise_grad(), and blender::x.
Referenced by noise_grad(), noise_grad(), noise_grad(), noise_grad(), perlin_noise(), perlin_noise(), perlin_noise(), and perlin_noise().
| BLI_INLINE float blender::noise::noise_grad | ( | uint32_t | hash, |
| float | x, | ||
| float | y ) |
Definition at line 478 of file noise.cc.
References BLI_INLINE, hash(), negate_if(), noise_grad(), blender::v, blender::x, and y.
Definition at line 486 of file noise.cc.
References BLI_INLINE, ELEM, hash(), negate_if(), noise_grad(), blender::v, blender::x, y, and z().
Definition at line 495 of file noise.cc.
References BLI_INLINE, hash(), negate_if(), noise_grad(), blender::v, w(), blender::x, y, and z().
Definition at line 664 of file noise.cc.
References perlin(), perlin_signed(), and position.
Referenced by blender::BKE_paint_randomize_color(), perlin(), perlin(), perlin(), and perlin().
Definition at line 669 of file noise.cc.
References perlin(), perlin_signed(), and position.
Definition at line 674 of file noise.cc.
References perlin(), perlin_signed(), and position.
Definition at line 679 of file noise.cc.
References perlin(), perlin_signed(), and position.
| BLI_INLINE float blender::noise::perlin_distortion | ( | float | position, |
| float | strength ) |
Definition at line 916 of file noise.cc.
References BLI_INLINE, perlin_distortion(), perlin_signed(), position, and random_float_offset().
Referenced by perlin_distortion(), perlin_distortion(), perlin_distortion(), perlin_distortion(), perlin_float3_fractal_distorted(), perlin_float3_fractal_distorted(), perlin_float3_fractal_distorted(), perlin_float3_fractal_distorted(), and perlin_fractal_distorted().
| BLI_INLINE float2 blender::noise::perlin_distortion | ( | float2 | position, |
| float | strength ) |
Definition at line 921 of file noise.cc.
References BLI_INLINE, perlin_distortion(), perlin_signed(), position, and random_float2_offset().
| BLI_INLINE float3 blender::noise::perlin_distortion | ( | float3 | position, |
| float | strength ) |
Definition at line 927 of file noise.cc.
References BLI_INLINE, perlin_distortion(), perlin_signed(), position, and random_float3_offset().
| BLI_INLINE float4 blender::noise::perlin_distortion | ( | float4 | position, |
| float | strength ) |
Definition at line 934 of file noise.cc.
References BLI_INLINE, perlin_distortion(), perlin_signed(), position, and random_float4_offset().
| float blender::noise::perlin_fbm | ( | T | p, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| bool | normalize ) |
Definition at line 694 of file noise.cc.
References mix(), normalize, perlin_fbm(), perlin_signed(), and T.
Referenced by perlin_fbm(), perlin_fbm< float2 >(), perlin_fbm< float3 >(), and perlin_select().
| template float blender::noise::perlin_fbm< float2 > | ( | float2 | p, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity, | ||
| const bool | normalize ) |
References normalize, and perlin_fbm().
Referenced by blender::fcm_noise_evaluate().
| template float blender::noise::perlin_fbm< float3 > | ( | float3 | p, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity, | ||
| const bool | normalize ) |
References normalize, and perlin_fbm().
Referenced by blender::nodes::node_shader_tex_wave_cc::WaveFunction::call().
| float3 blender::noise::perlin_float3_fractal_distorted | ( | float | position, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| float | offset, | ||
| float | gain, | ||
| float | distortion, | ||
| int | type, | ||
| bool | normalize ) |
Definition at line 999 of file noise.cc.
References normalize, perlin_distortion(), perlin_float3_fractal_distorted(), perlin_select(), position, and random_float_offset().
Referenced by blender::nodes::node_shader_tex_noise_cc::NoiseFunction::call(), perlin_float3_fractal_distorted(), perlin_float3_fractal_distorted(), perlin_float3_fractal_distorted(), and perlin_float3_fractal_distorted().
| float3 blender::noise::perlin_float3_fractal_distorted | ( | float2 | position, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| float | offset, | ||
| float | gain, | ||
| float | distortion, | ||
| int | type, | ||
| bool | normalize ) |
Definition at line 1030 of file noise.cc.
References normalize, perlin_distortion(), perlin_float3_fractal_distorted(), perlin_select(), position, and random_float2_offset().
| float3 blender::noise::perlin_float3_fractal_distorted | ( | float3 | position, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| float | offset, | ||
| float | gain, | ||
| float | distortion, | ||
| int | type, | ||
| bool | normalize ) |
Definition at line 1061 of file noise.cc.
References normalize, perlin_distortion(), perlin_float3_fractal_distorted(), perlin_select(), position, and random_float3_offset().
| float3 blender::noise::perlin_float3_fractal_distorted | ( | float4 | position, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| float | offset, | ||
| float | gain, | ||
| float | distortion, | ||
| int | type, | ||
| bool | normalize ) |
Definition at line 1092 of file noise.cc.
References normalize, perlin_distortion(), perlin_float3_fractal_distorted(), perlin_select(), position, and random_float4_offset().
| float blender::noise::perlin_fractal_distorted | ( | T | position, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| float | offset, | ||
| float | gain, | ||
| float | distortion, | ||
| int | type, | ||
| bool | normalize ) |
Definition at line 945 of file noise.cc.
References normalize, perlin_distortion(), perlin_fractal_distorted(), perlin_select(), position, and T.
Referenced by blender::nodes::node_shader_tex_noise_cc::NoiseFunction::call(), perlin_fractal_distorted(), perlin_fractal_distorted< float >(), perlin_fractal_distorted< float2 >(), perlin_fractal_distorted< float3 >(), and perlin_fractal_distorted< float4 >().
| template float blender::noise::perlin_fractal_distorted< float > | ( | float | position, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| float | offset, | ||
| float | gain, | ||
| float | distortion, | ||
| int | type, | ||
| bool | normalize ) |
References normalize, perlin_fractal_distorted(), and position.
| template float blender::noise::perlin_fractal_distorted< float2 > | ( | float2 | position, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| float | offset, | ||
| float | gain, | ||
| float | distortion, | ||
| int | type, | ||
| bool | normalize ) |
References normalize, perlin_fractal_distorted(), and position.
| template float blender::noise::perlin_fractal_distorted< float3 > | ( | float3 | position, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| float | offset, | ||
| float | gain, | ||
| float | distortion, | ||
| int | type, | ||
| bool | normalize ) |
References normalize, perlin_fractal_distorted(), and position.
| template float blender::noise::perlin_fractal_distorted< float4 > | ( | float4 | position, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| float | offset, | ||
| float | gain, | ||
| float | distortion, | ||
| int | type, | ||
| bool | normalize ) |
References normalize, perlin_fractal_distorted(), and position.
| float blender::noise::perlin_hetero_terrain | ( | T | p, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity, | ||
| const float | offset ) |
Definition at line 756 of file noise.cc.
References floorf, perlin_hetero_terrain(), perlin_signed(), and T.
Referenced by perlin_hetero_terrain(), and perlin_select().
| float blender::noise::perlin_hybrid_multi_fractal | ( | T | p, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity, | ||
| const float | offset, | ||
| const float | gain ) |
Definition at line 782 of file noise.cc.
References floorf, perlin_hybrid_multi_fractal(), perlin_signed(), and T.
Referenced by perlin_hybrid_multi_fractal(), and perlin_select().
| float blender::noise::perlin_multi_fractal | ( | T | p, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity ) |
Definition at line 736 of file noise.cc.
References floorf, perlin_multi_fractal(), perlin_signed(), and T.
Referenced by perlin_multi_fractal(), and perlin_select().
| BLI_INLINE float blender::noise::perlin_noise | ( | float | position | ) |
Definition at line 511 of file noise.cc.
References BLI_INLINE, fade(), floor_fraction(), hash(), mix(), noise_grad(), perlin_noise(), position, and X.
Referenced by perlin_noise(), perlin_noise(), perlin_noise(), perlin_noise(), perlin_signed(), perlin_signed(), perlin_signed(), and perlin_signed().
| BLI_INLINE float blender::noise::perlin_noise | ( | float2 | position | ) |
Definition at line 524 of file noise.cc.
References BLI_INLINE, fade(), floor_fraction(), hash(), mix(), noise_grad(), perlin_noise(), position, blender::v, X, and Y.
| BLI_INLINE float blender::noise::perlin_noise | ( | float3 | position | ) |
Definition at line 544 of file noise.cc.
References BLI_INLINE, fade(), floor_fraction(), hash(), mix(), noise_grad(), perlin_noise(), position, blender::v, w(), X, Y, and Z.
| BLI_INLINE float blender::noise::perlin_noise | ( | float4 | position | ) |
Definition at line 571 of file noise.cc.
References BLI_INLINE, fade(), floor_fraction(), hash(), mix(), noise_grad(), perlin_noise(), position, blender::v, W, X, Y, and Z.
| float blender::noise::perlin_ridged_multi_fractal | ( | T | p, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity, | ||
| const float | offset, | ||
| const float | gain ) |
Definition at line 814 of file noise.cc.
References perlin_ridged_multi_fractal(), perlin_signed(), and T.
Referenced by perlin_ridged_multi_fractal(), and perlin_select().
| float blender::noise::perlin_select | ( | T | p, |
| float | detail, | ||
| float | roughness, | ||
| float | lacunarity, | ||
| float | offset, | ||
| float | gain, | ||
| int | type, | ||
| bool | normalize ) |
Definition at line 850 of file noise.cc.
References NOISE_SHD_PERLIN_FBM, NOISE_SHD_PERLIN_HETERO_TERRAIN, NOISE_SHD_PERLIN_HYBRID_MULTIFRACTAL, NOISE_SHD_PERLIN_MULTIFRACTAL, NOISE_SHD_PERLIN_RIDGED_MULTIFRACTAL, normalize, perlin_fbm(), perlin_hetero_terrain(), perlin_hybrid_multi_fractal(), perlin_multi_fractal(), perlin_ridged_multi_fractal(), perlin_select(), and T.
Referenced by perlin_float3_fractal_distorted(), perlin_float3_fractal_distorted(), perlin_float3_fractal_distorted(), perlin_float3_fractal_distorted(), perlin_fractal_distorted(), and perlin_select().
Definition at line 613 of file noise.cc.
References blender::math::abs(), float, blender::math::mod(), perlin_noise(), perlin_signed(), and position.
Referenced by perlin(), perlin(), perlin(), perlin(), perlin_distortion(), perlin_distortion(), perlin_distortion(), perlin_distortion(), perlin_fbm(), perlin_hetero_terrain(), perlin_hybrid_multi_fractal(), perlin_multi_fractal(), perlin_ridged_multi_fractal(), perlin_signed(), perlin_signed(), perlin_signed(), perlin_signed(), blender::ed::greasepencil::randomize_opacity(), blender::ed::greasepencil::randomize_radius(), and blender::ed::greasepencil::randomize_rotation().
Definition at line 623 of file noise.cc.
References blender::math::abs(), blender::math::mod(), perlin_noise(), perlin_signed(), and position.
Definition at line 635 of file noise.cc.
References blender::math::abs(), blender::math::mod(), perlin_noise(), perlin_signed(), and position.
Definition at line 648 of file noise.cc.
References blender::math::abs(), blender::math::mod(), perlin_noise(), perlin_signed(), and position.
| BLI_INLINE float2 blender::noise::random_float2_offset | ( | float | seed | ) |
Definition at line 893 of file noise.cc.
References BLI_INLINE, hash_float_to_float(), and random_float2_offset().
Referenced by perlin_distortion(), perlin_float3_fractal_distorted(), and random_float2_offset().
| BLI_INLINE float3 blender::noise::random_float3_offset | ( | float | seed | ) |
Definition at line 899 of file noise.cc.
References BLI_INLINE, hash_float_to_float(), and random_float3_offset().
Referenced by perlin_distortion(), perlin_float3_fractal_distorted(), and random_float3_offset().
| BLI_INLINE float4 blender::noise::random_float4_offset | ( | float | seed | ) |
Definition at line 906 of file noise.cc.
References BLI_INLINE, hash_float_to_float(), and random_float4_offset().
Referenced by perlin_distortion(), perlin_float3_fractal_distorted(), and random_float4_offset().
| BLI_INLINE float blender::noise::random_float_offset | ( | float | seed | ) |
Definition at line 888 of file noise.cc.
References BLI_INLINE, hash_float_to_float(), and random_float_offset().
Referenced by perlin_distortion(), perlin_float3_fractal_distorted(), and random_float_offset().
| BLI_INLINE float blender::noise::uint_to_float_01 | ( | uint32_t | k | ) |
Definition at line 227 of file noise.cc.
References BLI_INLINE, float, and uint_to_float_01().
Referenced by hash_float_to_float(), hash_float_to_float(), hash_float_to_float(), hash_float_to_float(), hash_to_float(), hash_to_float(), hash_to_float(), hash_to_float(), and uint_to_float_01().
Definition at line 1164 of file noise.cc.
References b, and voronoi_distance().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiMetricFunction::call(), voronoi_distance(), voronoi_distance(), voronoi_distance(), voronoi_distance(), voronoi_distance_bound(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), and voronoi_smooth_f1().
| float blender::noise::voronoi_distance | ( | const float2 | a, |
| const float2 | b, | ||
| const VoronoiParams & | params ) |
Definition at line 1169 of file noise.cc.
References b, BLI_assert_unreachable, blender::math::distance(), blender::noise::VoronoiParams::exponent, blender::noise::VoronoiParams::metric, NOISE_SHD_VORONOI_CHEBYCHEV, NOISE_SHD_VORONOI_EUCLIDEAN, NOISE_SHD_VORONOI_MANHATTAN, NOISE_SHD_VORONOI_MINKOWSKI, and voronoi_distance().
| float blender::noise::voronoi_distance | ( | const float3 | a, |
| const float3 | b, | ||
| const VoronoiParams & | params ) |
Definition at line 1189 of file noise.cc.
References b, BLI_assert_unreachable, blender::math::distance(), blender::noise::VoronoiParams::exponent, blender::noise::VoronoiParams::metric, NOISE_SHD_VORONOI_CHEBYCHEV, NOISE_SHD_VORONOI_EUCLIDEAN, NOISE_SHD_VORONOI_MANHATTAN, NOISE_SHD_VORONOI_MINKOWSKI, and voronoi_distance().
| float blender::noise::voronoi_distance | ( | const float4 | a, |
| const float4 | b, | ||
| const VoronoiParams & | params ) |
Definition at line 1210 of file noise.cc.
References b, BLI_assert_unreachable, blender::math::distance(), blender::noise::VoronoiParams::exponent, blender::noise::VoronoiParams::metric, NOISE_SHD_VORONOI_CHEBYCHEV, NOISE_SHD_VORONOI_EUCLIDEAN, NOISE_SHD_VORONOI_MANHATTAN, NOISE_SHD_VORONOI_MINKOWSKI, and voronoi_distance().
|
static |
Definition at line 1236 of file noise.cc.
References b, blender::math::length_squared(), blender::noise::VoronoiParams::metric, NOISE_SHD_VORONOI_EUCLIDEAN, T, voronoi_distance(), and voronoi_distance_bound().
Referenced by voronoi_distance_bound(), voronoi_f1(), voronoi_f1(), and voronoi_f1().
| float blender::noise::voronoi_distance_to_edge | ( | const VoronoiParams & | params, |
| const float | coord ) |
Definition at line 1354 of file noise.cc.
References fabsf, floorf, hash_float_to_float(), blender::math::min(), blender::noise::VoronoiParams::randomness, and voronoi_distance_to_edge().
Referenced by fractal_voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), and voronoi_distance_to_edge().
| float blender::noise::voronoi_distance_to_edge | ( | const VoronoiParams & | params, |
| const float2 | coord ) |
Definition at line 1527 of file noise.cc.
References blender::math::dot(), blender::math::floor(), FLT_MAX, hash_int2_to_float2(), blender::math::min(), blender::math::normalize(), blender::noise::VoronoiParams::randomness, and voronoi_distance_to_edge().
| float blender::noise::voronoi_distance_to_edge | ( | const VoronoiParams & | params, |
| const float3 | coord ) |
Definition at line 1738 of file noise.cc.
References blender::math::dot(), blender::math::floor(), FLT_MAX, hash_int3_to_float3(), blender::math::min(), blender::math::normalize(), blender::noise::VoronoiParams::randomness, and voronoi_distance_to_edge().
| float blender::noise::voronoi_distance_to_edge | ( | const VoronoiParams & | params, |
| const float4 | coord ) |
Definition at line 1966 of file noise.cc.
References blender::math::dot(), blender::math::floor(), FLT_MAX, hash_int4_to_float4(), blender::math::min(), blender::math::normalize(), blender::noise::VoronoiParams::randomness, and voronoi_distance_to_edge().
| VoronoiOutput blender::noise::voronoi_f1 | ( | const VoronoiParams & | params, |
| const float | coord ) |
Definition at line 1251 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, floorf, FLT_MAX, hash_float_to_float(), hash_float_to_float3(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, voronoi_distance(), voronoi_f1(), and voronoi_position().
Referenced by fractal_voronoi_x_fx(), voronoi_f1(), voronoi_f1(), voronoi_f1(), and voronoi_f1().
| VoronoiOutput blender::noise::voronoi_f1 | ( | const VoronoiParams & | params, |
| const float2 | coord ) |
Definition at line 1414 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, blender::math::floor(), FLT_MAX, hash_int2_to_float2(), hash_int2_to_float3(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, voronoi_distance(), voronoi_distance_bound(), voronoi_f1(), and voronoi_position().
| VoronoiOutput blender::noise::voronoi_f1 | ( | const VoronoiParams & | params, |
| const float3 | coord ) |
Definition at line 1619 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, blender::math::floor(), FLT_MAX, hash_int3_to_float3(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, voronoi_distance(), voronoi_distance_bound(), voronoi_f1(), and voronoi_position().
| VoronoiOutput blender::noise::voronoi_f1 | ( | const VoronoiParams & | params, |
| const float4 | coord ) |
Definition at line 1838 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, blender::math::floor(), FLT_MAX, hash_int4_to_float3(), hash_int4_to_float4(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, voronoi_distance(), voronoi_distance_bound(), voronoi_f1(), and voronoi_position().
| VoronoiOutput blender::noise::voronoi_f2 | ( | const VoronoiParams & | params, |
| const float | coord ) |
Definition at line 1316 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, floorf, FLT_MAX, hash_float_to_float(), hash_float_to_float3(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, voronoi_distance(), voronoi_f2(), and voronoi_position().
Referenced by fractal_voronoi_x_fx(), voronoi_f2(), voronoi_f2(), voronoi_f2(), and voronoi_f2().
| VoronoiOutput blender::noise::voronoi_f2 | ( | const VoronoiParams & | params, |
| const float2 | coord ) |
Definition at line 1486 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, blender::math::floor(), FLT_MAX, hash_int2_to_float2(), hash_int2_to_float3(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, voronoi_distance(), voronoi_f2(), and voronoi_position().
| VoronoiOutput blender::noise::voronoi_f2 | ( | const VoronoiParams & | params, |
| const float3 | coord ) |
Definition at line 1695 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, blender::math::floor(), FLT_MAX, hash_int3_to_float3(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, voronoi_distance(), voronoi_f2(), and voronoi_position().
| VoronoiOutput blender::noise::voronoi_f2 | ( | const VoronoiParams & | params, |
| const float4 | coord ) |
Definition at line 1920 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, blender::math::floor(), FLT_MAX, hash_int4_to_float3(), hash_int4_to_float4(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, voronoi_distance(), voronoi_f2(), and voronoi_position().
| float blender::noise::voronoi_n_sphere_radius | ( | const VoronoiParams & | params, |
| const float | coord ) |
Definition at line 1368 of file noise.cc.
References fabsf, floorf, FLT_MAX, hash_float_to_float(), blender::noise::VoronoiParams::randomness, and voronoi_n_sphere_radius().
Referenced by blender::nodes::node_shader_tex_voronoi_cc::VoronoiNSphereFunction::call(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), and voronoi_n_sphere_radius().
| float blender::noise::voronoi_n_sphere_radius | ( | const VoronoiParams & | params, |
| const float2 | coord ) |
Definition at line 1568 of file noise.cc.
References blender::math::distance(), blender::math::floor(), FLT_MAX, hash_int2_to_float2(), blender::math::length_squared(), blender::noise::VoronoiParams::randomness, and voronoi_n_sphere_radius().
| float blender::noise::voronoi_n_sphere_radius | ( | const VoronoiParams & | params, |
| const float3 | coord ) |
Definition at line 1783 of file noise.cc.
References blender::math::distance(), blender::math::floor(), FLT_MAX, hash_int3_to_float3(), blender::math::length_squared(), blender::noise::VoronoiParams::randomness, and voronoi_n_sphere_radius().
| float blender::noise::voronoi_n_sphere_radius | ( | const VoronoiParams & | params, |
| const float4 | coord ) |
Definition at line 2017 of file noise.cc.
References blender::math::distance(), blender::math::floor(), FLT_MAX, hash_int4_to_float4(), blender::math::length_squared(), blender::noise::VoronoiParams::randomness, and voronoi_n_sphere_radius().
Definition at line 1246 of file noise.cc.
References voronoi_position().
Referenced by voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), and voronoi_smooth_f1().
Definition at line 1409 of file noise.cc.
References voronoi_position().
Definition at line 1614 of file noise.cc.
References voronoi_position().
Definition at line 1833 of file noise.cc.
References voronoi_position().
| VoronoiOutput blender::noise::voronoi_smooth_f1 | ( | const VoronoiParams & | params, |
| const float | coord, | ||
| const bool | calc_color ) |
Definition at line 1278 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, floorf, hash_float_to_float(), hash_float_to_float3(), mix(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, blender::noise::VoronoiParams::smoothness, blender::smoothstep(), voronoi_distance(), voronoi_position(), and voronoi_smooth_f1().
Referenced by fractal_voronoi_x_fx(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), and voronoi_smooth_f1().
| VoronoiOutput blender::noise::voronoi_smooth_f1 | ( | const VoronoiParams & | params, |
| const float2 | coord, | ||
| const bool | calc_color ) |
Definition at line 1444 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, blender::math::floor(), hash_int2_to_float2(), hash_int2_to_float3(), mix(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, blender::noise::VoronoiParams::smoothness, blender::smoothstep(), voronoi_distance(), voronoi_position(), and voronoi_smooth_f1().
| VoronoiOutput blender::noise::voronoi_smooth_f1 | ( | const VoronoiParams & | params, |
| const float3 | coord, | ||
| const bool | calc_color ) |
Definition at line 1651 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, blender::math::floor(), hash_int3_to_float3(), mix(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, blender::noise::VoronoiParams::smoothness, blender::smoothstep(), voronoi_distance(), voronoi_position(), and voronoi_smooth_f1().
| VoronoiOutput blender::noise::voronoi_smooth_f1 | ( | const VoronoiParams & | params, |
| const float4 | coord, | ||
| const bool | calc_color ) |
Definition at line 1873 of file noise.cc.
References blender::noise::VoronoiOutput::color, blender::noise::VoronoiOutput::distance, blender::math::floor(), hash_int4_to_float3(), hash_int4_to_float4(), mix(), blender::noise::VoronoiOutput::position, blender::noise::VoronoiParams::randomness, blender::noise::VoronoiParams::smoothness, blender::smoothstep(), voronoi_distance(), voronoi_position(), and voronoi_smooth_f1().
|
staticconstexpr |
Definition at line 2227 of file noise.cc.
Referenced by compute_2d_gabor_noise_cell(), compute_2d_gabor_standard_deviation(), compute_3d_gabor_noise_cell(), and compute_3d_gabor_standard_deviation().