Blender  V2.59
Functions | Variables
TEX_bricks.c File Reference
#include "../TEX_util.h"
#include "TEX_node.h"
#include <math.h>

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 []

Detailed Description

Definition in file TEX_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 TEX_bricks.c.

References colorfn(), and tex_output().

Referenced by register_node_type_tex_bricks().

static void init ( bNode node) [static]
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)

Variable Documentation

bNodeSocketType inputs[] [static]
Initial value:
 {
        { 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.

Initial value:
 {
        { 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.