Blender V5.3
gpu_shader_material_tex_voronoi.bsl.hh File Reference

Go to the source code of this file.

Macros

#define INITIALIZE_VORONOIPARAMS(FEATURE)

Functions

void node_tex_voronoi_f1_1d (float3, float w, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &, float &outW, float &)
void node_tex_voronoi_smooth_f1_1d (float3, float w, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &, float &outW, float &)
void node_tex_voronoi_f2_1d (float3, float w, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &, float &outW, float &)
void node_tex_voronoi_distance_to_edge_1d (float3, float w, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &, float3 &, float &, float &)
void node_tex_voronoi_n_sphere_radius_1d (float3, float w, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &, float4 &, float3 &, float &, float &outRadius)
void node_tex_voronoi_f1_2d (float3 coord, float, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &outPosition, float &, float &)
void node_tex_voronoi_smooth_f1_2d (float3 coord, float, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &outPosition, float &, float &)
void node_tex_voronoi_f2_2d (float3 coord, float, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &outPosition, float &, float &)
void node_tex_voronoi_distance_to_edge_2d (float3 coord, float, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &, float3 &, float &, float &)
void node_tex_voronoi_n_sphere_radius_2d (float3 coord, float, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &, float4 &, float3 &, float &, float &outRadius)
void node_tex_voronoi_f1_3d (float3 coord, float, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &outPosition, float &, float &)
void node_tex_voronoi_smooth_f1_3d (float3 coord, float, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &outPosition, float &, float &)
void node_tex_voronoi_f2_3d (float3 coord, float, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &outPosition, float &, float &)
void node_tex_voronoi_distance_to_edge_3d (float3 coord, float, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &, float3 &, float &, float &)
void node_tex_voronoi_n_sphere_radius_3d (float3 coord, float, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &, float4 &, float3 &, float &, float &outRadius)
void node_tex_voronoi_f1_4d (float3 coord, float w, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &outPosition, float &outW, float &)
void node_tex_voronoi_smooth_f1_4d (float3 coord, float w, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &outPosition, float &outW, float &)
void node_tex_voronoi_f2_4d (float3 coord, float w, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &outColor, float3 &outPosition, float &outW, float &)
void node_tex_voronoi_distance_to_edge_4d (float3 coord, float w, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &outDistance, float4 &, float3 &, float &, float &)
void node_tex_voronoi_n_sphere_radius_4d (float3 coord, float w, float scale, float detail, float roughness, float lacunarity, float smoothness, float exponent, float randomness, float metric, float normalize, float &, float4 &, float3 &, float &, float &outRadius)

Macro Definition Documentation

◆ INITIALIZE_VORONOIPARAMS

#define INITIALIZE_VORONOIPARAMS ( FEATURE)
Value:
params.feature = FEATURE; \
params.metric = int(metric); \
params.scale = scale; \
params.detail = clamp(detail, 0.0f, 15.0f); \
params.roughness = clamp(roughness, 0.0f, 1.0f); \
params.lacunarity = lacunarity; \
params.smoothness = clamp(smoothness / 2.0f, 0.0f, 0.5f); \
params.exponent = exponent; \
params.randomness = clamp(randomness, 0.0f, 1.0f); \
params.max_distance = 0.0f; \
params.normalize = bool(normalize);
VecBase< float, D > normalize(VecOp< float, D >) RET
constexpr T clamp(T, U, U) RET
float3x3 scale(float3x3 mat, float2 scale)

Definition at line 24 of file gpu_shader_material_tex_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(), node_tex_voronoi_distance_to_edge_4d(), node_tex_voronoi_f1_1d(), node_tex_voronoi_f1_2d(), node_tex_voronoi_f1_3d(), node_tex_voronoi_f1_4d(), node_tex_voronoi_f2_1d(), node_tex_voronoi_f2_2d(), node_tex_voronoi_f2_3d(), node_tex_voronoi_f2_4d(), 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(), 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().

Function Documentation

◆ node_tex_voronoi_distance_to_edge_1d()

void node_tex_voronoi_distance_to_edge_1d ( float3 ,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & ,
float3 & ,
float & ,
float &  )

◆ node_tex_voronoi_distance_to_edge_2d()

void node_tex_voronoi_distance_to_edge_2d ( float3 coord,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & ,
float3 & ,
float & ,
float &  )

◆ node_tex_voronoi_distance_to_edge_3d()

void node_tex_voronoi_distance_to_edge_3d ( float3 coord,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & ,
float3 & ,
float & ,
float &  )

◆ node_tex_voronoi_distance_to_edge_4d()

void node_tex_voronoi_distance_to_edge_4d ( float3 coord,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & ,
float3 & ,
float & ,
float &  )

◆ node_tex_voronoi_f1_1d()

void node_tex_voronoi_f1_1d ( float3 ,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & ,
float & outW,
float &  )

◆ node_tex_voronoi_f1_2d()

void node_tex_voronoi_f1_2d ( float3 coord,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & outPosition,
float & ,
float &  )

◆ node_tex_voronoi_f1_3d()

void node_tex_voronoi_f1_3d ( float3 coord,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & outPosition,
float & ,
float &  )

◆ node_tex_voronoi_f1_4d()

void node_tex_voronoi_f1_4d ( float3 coord,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & outPosition,
float & outW,
float &  )

◆ node_tex_voronoi_f2_1d()

void node_tex_voronoi_f2_1d ( float3 ,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & ,
float & outW,
float &  )

◆ node_tex_voronoi_f2_2d()

void node_tex_voronoi_f2_2d ( float3 coord,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & outPosition,
float & ,
float &  )

◆ node_tex_voronoi_f2_3d()

void node_tex_voronoi_f2_3d ( float3 coord,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & outPosition,
float & ,
float &  )

◆ node_tex_voronoi_f2_4d()

void node_tex_voronoi_f2_4d ( float3 coord,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & outPosition,
float & outW,
float &  )

◆ node_tex_voronoi_n_sphere_radius_1d()

void node_tex_voronoi_n_sphere_radius_1d ( float3 ,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & ,
float4 & ,
float3 & ,
float & ,
float & outRadius )

◆ node_tex_voronoi_n_sphere_radius_2d()

void node_tex_voronoi_n_sphere_radius_2d ( float3 coord,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & ,
float4 & ,
float3 & ,
float & ,
float & outRadius )

◆ node_tex_voronoi_n_sphere_radius_3d()

void node_tex_voronoi_n_sphere_radius_3d ( float3 coord,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & ,
float4 & ,
float3 & ,
float & ,
float & outRadius )

◆ node_tex_voronoi_n_sphere_radius_4d()

void node_tex_voronoi_n_sphere_radius_4d ( float3 coord,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & ,
float4 & ,
float3 & ,
float & ,
float & outRadius )

◆ node_tex_voronoi_smooth_f1_1d()

void node_tex_voronoi_smooth_f1_1d ( float3 ,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & ,
float & outW,
float &  )

◆ node_tex_voronoi_smooth_f1_2d()

void node_tex_voronoi_smooth_f1_2d ( float3 coord,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & outPosition,
float & ,
float &  )

◆ node_tex_voronoi_smooth_f1_3d()

void node_tex_voronoi_smooth_f1_3d ( float3 coord,
float ,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & outPosition,
float & ,
float &  )

◆ node_tex_voronoi_smooth_f1_4d()

void node_tex_voronoi_smooth_f1_4d ( float3 coord,
float w,
float scale,
float detail,
float roughness,
float lacunarity,
float smoothness,
float exponent,
float randomness,
float metric,
float normalize,
float & outDistance,
float4 & outColor,
float3 & outPosition,
float & outW,
float &  )