Blender V4.3
blender::nodes::node_shader_tex_brick_cc::BrickFunction Class Reference

Inherits blender::fn::multi_function::MultiFunction.

Public Member Functions

 BrickFunction (const float offset, const int offset_freq, const float squash, const int squash_freq)
 
void call (const IndexMask &mask, mf::Params params, mf::Context) const override
 
- Public Member Functions inherited from blender::fn::multi_function::MultiFunction
virtual ~MultiFunction ()
 
void call_auto (const IndexMask &mask, Params params, Context context) const
 
virtual uint64_t hash () const
 
virtual bool equals (const MultiFunction &) const
 
int param_amount () const
 
IndexRange param_indices () const
 
ParamType param_type (int param_index) const
 
StringRefNull param_name (int param_index) const
 
StringRefNull name () const
 
virtual std::string debug_name () const
 
const Signaturesignature () const
 
ExecutionHints execution_hints () const
 

Static Public Member Functions

static float brick_noise (uint n)
 
static float smoothstepf (const float f)
 
static float2 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)
 

Additional Inherited Members

- Protected Member Functions inherited from blender::fn::multi_function::MultiFunction
void set_signature (const Signature *signature)
 
virtual ExecutionHints get_execution_hints () const
 

Detailed Description

Definition at line 133 of file node_shader_tex_brick.cc.

Constructor & Destructor Documentation

◆ BrickFunction()

blender::nodes::node_shader_tex_brick_cc::BrickFunction::BrickFunction ( const float offset,
const int offset_freq,
const float squash,
const int squash_freq )
inline

Member Function Documentation

◆ brick()

static float2 blender::nodes::node_shader_tex_brick_cc::BrickFunction::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 )
inlinestatic

Definition at line 182 of file node_shader_tex_brick.cc.

References brick_noise(), clamp_f(), floorf, int, and smoothstepf().

Referenced by call().

◆ brick_noise()

static float blender::nodes::node_shader_tex_brick_cc::BrickFunction::brick_noise ( uint n)
inlinestatic

Definition at line 168 of file node_shader_tex_brick.cc.

References float.

Referenced by brick().

◆ call()

void blender::nodes::node_shader_tex_brick_cc::BrickFunction::call ( const IndexMask & mask,
mf::Params params,
mf::Context  ) const
inlineoverridevirtual

Implements blender::fn::multi_function::MultiFunction.

Definition at line 226 of file node_shader_tex_brick.cc.

References brick(), copy_v4_v4(), and params.

◆ smoothstepf()

static float blender::nodes::node_shader_tex_brick_cc::BrickFunction::smoothstepf ( const float f)
inlinestatic

Definition at line 176 of file node_shader_tex_brick.cc.

Referenced by brick().


The documentation for this class was generated from the following file: