Blender V5.0
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 ()=default
void call_auto (const IndexMask &mask, Params params, Context context) const
virtual void call (const IndexMask &mask, Params params, Context context) const =0
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 129 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()

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 178 of file node_shader_tex_brick.cc.

References brick_noise(), clamp_f(), floorf, smoothstepf(), x, and y.

Referenced by call().

◆ brick_noise()

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

Definition at line 164 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
inlineoverride

Definition at line 222 of file node_shader_tex_brick.cc.

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

◆ smoothstepf()

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

Definition at line 172 of file node_shader_tex_brick.cc.

Referenced by brick().


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