|
Blender
V2.59
|
Go to the source code of this file.
Functions | |
| static void | init (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, bNode *node, bNodeStack **in, bNodeStack **out) |
| void | register_node_type_tex_bricks (ListBase *lb) |
Variables | |
| static bNodeSocketType | inputs [] |
| static bNodeSocketType | outputs [] |
Definition in file TEX_bricks.c.
| static void colorfn | ( | float * | out, |
| TexParams * | p, | ||
| bNode * | node, | ||
| bNodeStack ** | in, | ||
| short | thread | ||
| ) | [static] |
Definition at line 67 of file TEX_bricks.c.
References CLAMP(), TexParams::co, co, bNode::custom1, bNode::custom2, bNode::custom3, bNode::custom4, MA_RAMP_BLEND, noise(), QUATCOPY, ramp_blend(), tex_input_rgba(), tex_input_value(), ImBuf::x, and ImBuf::y.
Referenced by exec().
| static void exec | ( | void * | data, |
| bNode * | node, | ||
| bNodeStack ** | in, | ||
| bNodeStack ** | out | ||
| ) | [static] |
Definition at line 117 of file TEX_bricks.c.
References colorfn(), and tex_output().
Referenced by register_node_type_tex_bricks().
| static void init | ( | bNode * | node | ) | [static] |
Definition at line 54 of file TEX_bricks.c.
References bNode::custom3, and bNode::custom4.
Referenced by btSymMatrix< T >::btSymMatrix(), Buffer_new(), Parametrizer::calculateAllMissingValues(), deformVerts(), GPU_extensions_init(), STR_HashedString::hash(), load_tex(), main(), modifiers_getVirtualModifierList(), register_node_type_tex_bricks(), register_node_type_tex_image(), register_node_type_tex_output(), btSymMatrix< T >::resize(), UI_view2d_region_reinit(), and v3d_editvertex_buts().
| static float noise | ( | int | n | ) | [static] |
Definition at line 59 of file TEX_bricks.c.
Referenced by colorfn(), and fcm_noise_evaluate().
| void register_node_type_tex_bricks | ( | ListBase * | lb | ) |
Definition at line 122 of file TEX_bricks.c.
References exec(), init(), NODE_CLASS_PATTERN, NODE_OPTIONS, NODE_PREVIEW, node_type_base(), node_type_exec(), node_type_init(), node_type_size(), nodeRegisterType(), and TEX_NODE_BRICKS.
Referenced by registerTextureNodes().
bNodeSocketType inputs[] [static] |
{
{ SOCK_RGBA, 1, "Bricks 1", 0.596f, 0.282f, 0.0f, 1.0f, 0.0f, 1.0f },
{ SOCK_RGBA, 1, "Bricks 2", 0.632f, 0.504f, 0.05f, 1.0f, 0.0f, 1.0f },
{ SOCK_RGBA, 1, "Mortar", 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f },
{ SOCK_VALUE, 1, "Thickness", 0.02f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f },
{ SOCK_VALUE, 1, "Bias", 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f },
{ SOCK_VALUE, 1, "Brick Width", 0.5f, 0.0f, 0.0f, 0.0f, 0.001f, 99.0f },
{ SOCK_VALUE, 1, "Row Height", 0.25f, 0.0f, 0.0f, 0.0f, 0.001f, 99.0f },
{ -1, 0, "" }
}
Definition at line 39 of file TEX_bricks.c.
bNodeSocketType outputs[] [static] |
{
{ SOCK_RGBA, 0, "Color", 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
{ -1, 0, "" }
}
Definition at line 49 of file TEX_bricks.c.