Blender  V3.3
Functions
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_noinline int svm_node_tex_brick (KernelGlobals kg, ccl_private ShaderData *sd, ccl_private float *stack, uint4 node, int offset)
 

Function Documentation

◆ brick_noise()

Definition at line 10 of file 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 19 of file brick.h.

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

Referenced by svm_node_tex_brick().

◆ svm_node_tex_brick()

ccl_device_noinline int svm_node_tex_brick ( KernelGlobals  kg,
ccl_private ShaderData sd,
ccl_private float stack,
uint4  node,
int  offset 
)