Blender  V3.3
Functions | Variables
node_texture_bricks.c File Reference
#include "NOD_texture.h"
#include "node_texture_util.h"
#include <math.h>

Go to the source code of this file.

Functions

static void init (bNodeTree *UNUSED(ntree), bNode *node)
 
static float noise (int n)
 
static void colorfn (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
 
static void exec (void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
void register_node_type_tex_bricks (void)
 

Variables

static bNodeSocketTemplate inputs []
 
static bNodeSocketTemplate outputs []
 

Function Documentation

◆ colorfn()

static void colorfn ( float out,
TexParams p,
bNode node,
bNodeStack **  in,
short  thread 
)
static

◆ exec()

static void exec ( void data,
int   UNUSEDthread,
bNode node,
bNodeExecData execdata,
bNodeStack **  in,
bNodeStack **  out 
)
static

Definition at line 92 of file node_texture_bricks.c.

References colorfn(), data, node, usdtokens::out(), and tex_output().

Referenced by register_node_type_tex_bricks().

◆ init()

static void init ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 28 of file node_texture_bricks.c.

References node.

Referenced by register_node_type_tex_bricks().

◆ noise()

static float noise ( int  n)
static

◆ register_node_type_tex_bricks()

void register_node_type_tex_bricks ( void  )

Variable Documentation

◆ inputs

bNodeSocketTemplate inputs[]
static
Initial value:
= {
{SOCK_RGBA, N_("Bricks 1"), 0.596f, 0.282f, 0.0f, 1.0f},
{SOCK_RGBA, N_("Bricks 2"), 0.632f, 0.504f, 0.05f, 1.0f},
{SOCK_RGBA, N_("Mortar"), 0.0f, 0.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Thickness"), 0.02f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_UNSIGNED},
{SOCK_FLOAT, N_("Bias"), 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f, PROP_NONE},
{SOCK_FLOAT, N_("Brick Width"), 0.5f, 0.0f, 0.0f, 0.0f, 0.001f, 99.0f, PROP_UNSIGNED},
{SOCK_FLOAT, N_("Row Height"), 0.25f, 0.0f, 0.0f, 0.0f, 0.001f, 99.0f, PROP_UNSIGNED},
{-1, ""},
}
@ SOCK_FLOAT
@ SOCK_RGBA
@ PROP_NONE
Definition: RNA_types.h:126
@ PROP_UNSIGNED
Definition: RNA_types.h:142
#define N_(msgid)

Definition at line 13 of file node_texture_bricks.c.

Referenced by register_node_type_tex_bricks().

◆ outputs

bNodeSocketTemplate outputs[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color")},
{-1, ""},
}

Definition at line 23 of file node_texture_bricks.c.

Referenced by register_node_type_tex_bricks().