Blender  V2.93
Functions
svm_brick.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device_inline float brick_noise (uint n)
 
ccl_device_noinline_cpu float2 svm_brick (float3 p, float mortar_size, float mortar_smooth, float bias, float brick_width, float row_height, float offset_amount, int offset_frequency, float squash_amount, int squash_frequency)
 
ccl_device void svm_node_tex_brick (KernelGlobals *kg, ShaderData *sd, float *stack, uint4 node, int *offset)
 

Function Documentation

◆ brick_noise()

Definition at line 21 of file svm_brick.h.

References float().

Referenced by svm_brick().

◆ svm_brick()

ccl_device_noinline_cpu float2 svm_brick ( float3  p,
float  mortar_size,
float  mortar_smooth,
float  bias,
float  brick_width,
float  row_height,
float  offset_amount,
int  offset_frequency,
float  squash_amount,
int  squash_frequency 
)

Definition at line 30 of file svm_brick.h.

References brick_noise(), floor_to_int(), make_float2, min, saturate(), smoothstepf(), float3::x, x, float3::y, and y.

Referenced by svm_node_tex_brick().

◆ svm_node_tex_brick()

ccl_device void svm_node_tex_brick ( KernelGlobals *  kg,
ShaderData sd,
float stack,
uint4  node,
int *  offset 
)