|
Blender V5.3
|
#include "gpu_shader_common_hash.bsl.hh"Go to the source code of this file.
Classes | |
| struct | VoronoiParams |
| struct | VoronoiOutput |
Macros | |
| #define | SHD_VORONOI_EUCLIDEAN 0 |
| #define | SHD_VORONOI_MANHATTAN 1 |
| #define | SHD_VORONOI_CHEBYCHEV 2 |
| #define | SHD_VORONOI_MINKOWSKI 3 |
| #define | SHD_VORONOI_F1 0 |
| #define | SHD_VORONOI_F2 1 |
| #define | SHD_VORONOI_SMOOTH_F1 2 |
| #define | SHD_VORONOI_DISTANCE_TO_EDGE 3 |
| #define | SHD_VORONOI_N_SPHERE_RADIUS 4 |
| #define SHD_VORONOI_CHEBYCHEV 2 |
Definition at line 26 of file gpu_shader_material_voronoi.bsl.hh.
Referenced by voronoi_distance(), voronoi_distance(), and voronoi_distance().
| #define SHD_VORONOI_DISTANCE_TO_EDGE 3 |
Definition at line 32 of file gpu_shader_material_voronoi.bsl.hh.
Referenced by node_tex_voronoi_distance_to_edge_1d(), node_tex_voronoi_distance_to_edge_2d(), node_tex_voronoi_distance_to_edge_3d(), and node_tex_voronoi_distance_to_edge_4d().
| #define SHD_VORONOI_EUCLIDEAN 0 |
Definition at line 24 of file gpu_shader_material_voronoi.bsl.hh.
Referenced by voronoi_distance(), voronoi_distance(), and voronoi_distance().
| #define SHD_VORONOI_F1 0 |
Definition at line 29 of file gpu_shader_material_voronoi.bsl.hh.
Referenced by node_tex_voronoi_f1_1d(), node_tex_voronoi_f1_2d(), node_tex_voronoi_f1_3d(), and node_tex_voronoi_f1_4d().
| #define SHD_VORONOI_F2 1 |
Definition at line 30 of file gpu_shader_material_voronoi.bsl.hh.
Referenced by fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), node_tex_voronoi_f2_1d(), node_tex_voronoi_f2_2d(), node_tex_voronoi_f2_3d(), and node_tex_voronoi_f2_4d().
| #define SHD_VORONOI_MANHATTAN 1 |
Definition at line 25 of file gpu_shader_material_voronoi.bsl.hh.
Referenced by voronoi_distance(), voronoi_distance(), and voronoi_distance().
| #define SHD_VORONOI_MINKOWSKI 3 |
Definition at line 27 of file gpu_shader_material_voronoi.bsl.hh.
Referenced by voronoi_distance(), voronoi_distance(), and voronoi_distance().
| #define SHD_VORONOI_N_SPHERE_RADIUS 4 |
Definition at line 33 of file gpu_shader_material_voronoi.bsl.hh.
Referenced by node_tex_voronoi_n_sphere_radius_1d(), node_tex_voronoi_n_sphere_radius_2d(), node_tex_voronoi_n_sphere_radius_3d(), and node_tex_voronoi_n_sphere_radius_4d().
| #define SHD_VORONOI_SMOOTH_F1 2 |
Definition at line 31 of file gpu_shader_material_voronoi.bsl.hh.
Referenced by fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), node_tex_voronoi_smooth_f1_1d(), node_tex_voronoi_smooth_f1_2d(), node_tex_voronoi_smooth_f1_3d(), and node_tex_voronoi_smooth_f1_4d().
Definition at line 57 of file gpu_shader_material_voronoi.bsl.hh.
References abs, b, and voronoi_distance().
Referenced by node_tex_voronoi_f1_2d(), node_tex_voronoi_f1_3d(), node_tex_voronoi_f1_4d(), node_tex_voronoi_f2_2d(), node_tex_voronoi_f2_3d(), node_tex_voronoi_f2_4d(), node_tex_voronoi_smooth_f1_2d(), node_tex_voronoi_smooth_f1_3d(), node_tex_voronoi_smooth_f1_4d(), svm_node_tex_voronoi(), voronoi_distance(), voronoi_distance(), voronoi_distance(), voronoi_distance(), voronoi_distance(), voronoi_distance(), voronoi_distance(), voronoi_distance(), voronoi_distance(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), and voronoi_smooth_f1().
| float voronoi_distance | ( | float2 | a, |
| float2 | b, | ||
| VoronoiParams | params ) |
Definition at line 62 of file gpu_shader_material_voronoi.bsl.hh.
References abs, b, distance(), VoronoiParams::exponent, max, VoronoiParams::metric, pow, SHD_VORONOI_CHEBYCHEV, SHD_VORONOI_EUCLIDEAN, SHD_VORONOI_MANHATTAN, SHD_VORONOI_MINKOWSKI, voronoi_distance(), float2::x, and float2::y.
| float voronoi_distance | ( | float3 | a, |
| float3 | b, | ||
| VoronoiParams | params ) |
Definition at line 80 of file gpu_shader_material_voronoi.bsl.hh.
References abs, b, distance(), VoronoiParams::exponent, max, VoronoiParams::metric, pow, SHD_VORONOI_CHEBYCHEV, SHD_VORONOI_EUCLIDEAN, SHD_VORONOI_MANHATTAN, SHD_VORONOI_MINKOWSKI, voronoi_distance(), float3::x, float3::y, and float3::z.
| float voronoi_distance | ( | float4 | a, |
| float4 | b, | ||
| VoronoiParams | params ) |
Definition at line 99 of file gpu_shader_material_voronoi.bsl.hh.
References abs, b, distance(), VoronoiParams::exponent, max, VoronoiParams::metric, pow, SHD_VORONOI_CHEBYCHEV, SHD_VORONOI_EUCLIDEAN, SHD_VORONOI_MANHATTAN, SHD_VORONOI_MINKOWSKI, voronoi_distance(), float4::w, float4::x, float4::y, and float4::z.
| float voronoi_distance_to_edge | ( | VoronoiParams | params, |
| float | coord ) |
Definition at line 223 of file gpu_shader_material_voronoi.bsl.hh.
References abs, floor, hash_float_to_float(), min, VoronoiParams::randomness, and voronoi_distance_to_edge().
Referenced by fractal_voronoi_distance_to_edge(), fractal_voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), voronoi_distance_to_edge(), and voronoi_distance_to_edge().
| float voronoi_distance_to_edge | ( | VoronoiParams | params, |
| float2 | coord ) |
Definition at line 391 of file gpu_shader_material_voronoi.bsl.hh.
References dot(), floor, FLT_MAX, hash_int2_to_vec2(), min, normalize, VoronoiParams::randomness, and voronoi_distance_to_edge().
| float voronoi_distance_to_edge | ( | VoronoiParams | params, |
| float3 | coord ) |
Definition at line 597 of file gpu_shader_material_voronoi.bsl.hh.
References dot(), floor, FLT_MAX, hash_int3_to_vec3(), min, normalize, VoronoiParams::randomness, and voronoi_distance_to_edge().
| float voronoi_distance_to_edge | ( | VoronoiParams | params, |
| float4 | coord ) |
Definition at line 817 of file gpu_shader_material_voronoi.bsl.hh.
References dot(), floor, FLT_MAX, hash_int4_to_vec4(), min, normalize, VoronoiParams::randomness, and voronoi_distance_to_edge().
| VoronoiOutput voronoi_f1 | ( | VoronoiParams | params, |
| float | coord ) |
Definition at line 125 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, FLT_MAX, hash_float_to_float(), hash_float_to_vec3(), VoronoiOutput::Position, VoronoiParams::randomness, voronoi_distance(), voronoi_f1(), and voronoi_position().
Referenced by fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), and voronoi_f1().
| VoronoiOutput voronoi_f1 | ( | VoronoiParams | params, |
| float2 | coord ) |
Definition at line 283 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, FLT_MAX, hash_int2_to_vec2(), hash_int2_to_vec3(), VoronoiOutput::Position, VoronoiParams::randomness, voronoi_distance(), voronoi_f1(), and voronoi_position().
| VoronoiOutput voronoi_f1 | ( | VoronoiParams | params, |
| float3 | coord ) |
Definition at line 483 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, FLT_MAX, hash_int3_to_vec3(), VoronoiOutput::Position, VoronoiParams::randomness, voronoi_distance(), voronoi_f1(), and voronoi_position().
| VoronoiOutput voronoi_f1 | ( | VoronoiParams | params, |
| float4 | coord ) |
Definition at line 697 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, FLT_MAX, hash_int4_to_vec3(), hash_int4_to_vec4(), VoronoiOutput::Position, VoronoiParams::randomness, voronoi_distance(), voronoi_f1(), and voronoi_position().
| VoronoiOutput voronoi_f2 | ( | VoronoiParams | params, |
| float | coord ) |
Definition at line 185 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, FLT_MAX, hash_float_to_float(), hash_float_to_vec3(), VoronoiOutput::Position, VoronoiParams::randomness, voronoi_distance(), voronoi_f2(), and voronoi_position().
Referenced by fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), and voronoi_f2().
| VoronoiOutput voronoi_f2 | ( | VoronoiParams | params, |
| float2 | coord ) |
Definition at line 350 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, FLT_MAX, hash_int2_to_vec2(), hash_int2_to_vec3(), VoronoiOutput::Position, VoronoiParams::randomness, voronoi_distance(), voronoi_f2(), and voronoi_position().
| VoronoiOutput voronoi_f2 | ( | VoronoiParams | params, |
| float3 | coord ) |
Definition at line 554 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, FLT_MAX, hash_int3_to_vec3(), VoronoiOutput::Position, VoronoiParams::randomness, voronoi_distance(), voronoi_f2(), and voronoi_position().
| VoronoiOutput voronoi_f2 | ( | VoronoiParams | params, |
| float4 | coord ) |
Definition at line 772 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, FLT_MAX, hash_int4_to_vec3(), hash_int4_to_vec4(), VoronoiOutput::Position, VoronoiParams::randomness, voronoi_distance(), voronoi_f2(), and voronoi_position().
| float voronoi_n_sphere_radius | ( | VoronoiParams | params, |
| float | coord ) |
Definition at line 237 of file gpu_shader_material_voronoi.bsl.hh.
References abs, floor, FLT_MAX, hash_float_to_float(), VoronoiParams::randomness, and voronoi_n_sphere_radius().
Referenced by node_tex_voronoi_n_sphere_radius_1d(), node_tex_voronoi_n_sphere_radius_2d(), node_tex_voronoi_n_sphere_radius_3d(), node_tex_voronoi_n_sphere_radius_4d(), svm_node_tex_voronoi(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), and voronoi_n_sphere_radius().
| float voronoi_n_sphere_radius | ( | VoronoiParams | params, |
| float2 | coord ) |
Definition at line 432 of file gpu_shader_material_voronoi.bsl.hh.
References distance(), floor, FLT_MAX, hash_int2_to_vec2(), VoronoiParams::randomness, and voronoi_n_sphere_radius().
| float voronoi_n_sphere_radius | ( | VoronoiParams | params, |
| float3 | coord ) |
Definition at line 642 of file gpu_shader_material_voronoi.bsl.hh.
References distance(), floor, FLT_MAX, hash_int3_to_vec3(), VoronoiParams::randomness, and voronoi_n_sphere_radius().
| float voronoi_n_sphere_radius | ( | VoronoiParams | params, |
| float4 | coord ) |
Definition at line 866 of file gpu_shader_material_voronoi.bsl.hh.
References distance(), floor, FLT_MAX, hash_int4_to_vec4(), VoronoiParams::randomness, and voronoi_n_sphere_radius().
Definition at line 120 of file gpu_shader_material_voronoi.bsl.hh.
References voronoi_position().
Referenced by voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f1(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_f2(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_position(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), and voronoi_smooth_f1().
Definition at line 278 of file gpu_shader_material_voronoi.bsl.hh.
References voronoi_position(), float2::x, and float2::y.
Definition at line 478 of file gpu_shader_material_voronoi.bsl.hh.
References voronoi_position(), float3::x, float3::y, and float3::z.
Definition at line 692 of file gpu_shader_material_voronoi.bsl.hh.
References voronoi_position().
| VoronoiOutput voronoi_smooth_f1 | ( | VoronoiParams | params, |
| float | coord ) |
Definition at line 152 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, hash_float_to_float(), hash_float_to_vec3(), mix, VoronoiOutput::Position, VoronoiParams::randomness, VoronoiParams::smoothness, smoothstep(), voronoi_distance(), voronoi_position(), and voronoi_smooth_f1().
Referenced by fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), and voronoi_smooth_f1().
| VoronoiOutput voronoi_smooth_f1 | ( | VoronoiParams | params, |
| float2 | coord ) |
Definition at line 313 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, hash_int2_to_vec2(), hash_int2_to_vec3(), mix, VoronoiOutput::Position, VoronoiParams::randomness, VoronoiParams::smoothness, smoothstep(), voronoi_distance(), voronoi_position(), and voronoi_smooth_f1().
| VoronoiOutput voronoi_smooth_f1 | ( | VoronoiParams | params, |
| float3 | coord ) |
Definition at line 515 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, hash_int3_to_vec3(), mix, VoronoiOutput::Position, VoronoiParams::randomness, VoronoiParams::smoothness, smoothstep(), voronoi_distance(), voronoi_position(), and voronoi_smooth_f1().
| VoronoiOutput voronoi_smooth_f1 | ( | VoronoiParams | params, |
| float4 | coord ) |
Definition at line 731 of file gpu_shader_material_voronoi.bsl.hh.
References VoronoiOutput::Color, VoronoiOutput::Distance, floor, hash_int4_to_vec3(), hash_int4_to_vec4(), mix, VoronoiOutput::Position, VoronoiParams::randomness, VoronoiParams::smoothness, smoothstep(), voronoi_distance(), voronoi_position(), and voronoi_smooth_f1().