Blender V2.61 - r43446
Functions | Variables

node_texture_bricks.c File Reference

#include "node_texture_util.h"
#include "NOD_texture.h"
#include <math.h>

Go to the source code of this file.

Functions

static void init (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
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 (bNodeTreeType *ttype)

Variables

static bNodeSocketTemplate inputs []
static bNodeSocketTemplate outputs []

Detailed Description

Definition in file node_texture_bricks.c.


Function Documentation

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

Definition at line 117 of file node_texture_bricks.c.

References colorfn(), and tex_output().

Referenced by register_node_type_tex_bricks().

static void init ( bNodeTree UNUSEDntree,
bNode node,
bNodeTemplate UNUSEDntemp 
) [static]

Definition at line 53 of file node_texture_bricks.c.

References bNode::custom3, and bNode::custom4.

static float noise ( int  n) [static]

Definition at line 59 of file node_texture_bricks.c.

Referenced by colorfn().

void register_node_type_tex_bricks ( bNodeTreeType ttype)

Variable Documentation

Initial value:
 {
    { SOCK_RGBA,  1, "Bricks 1",    0.596f, 0.282f, 0.0f,  1.0f },
    { SOCK_RGBA,  1, "Bricks 2",    0.632f, 0.504f, 0.05f, 1.0f },
    { SOCK_RGBA,  1, "Mortar",      0.0f,   0.0f,   0.0f,  1.0f },
    { SOCK_FLOAT, 1, "Thickness",   0.02f,  0.0f,   0.0f,  0.0f,  0.0f,    1.0f, PROP_UNSIGNED },
    { SOCK_FLOAT, 1, "Bias",        0.0f,   0.0f,   0.0f,  0.0f, -1.0f,    1.0f, PROP_NONE },
    { SOCK_FLOAT, 1, "Brick Width", 0.5f,   0.0f,   0.0f,  0.0f,  0.001f, 99.0f, PROP_UNSIGNED },
    { SOCK_FLOAT, 1, "Row Height",  0.25f,  0.0f,   0.0f,  0.0f,  0.001f, 99.0f, PROP_UNSIGNED },
    { -1, 0, "" }
}

Definition at line 38 of file node_texture_bricks.c.

Initial value:
 {
    { SOCK_RGBA, 0, "Color"},
    { -1, 0, "" }
}

Definition at line 48 of file node_texture_bricks.c.