Blender V2.61 - r43446
Functions | Variables

node_texture_math.c File Reference

#include "node_texture_util.h"
#include "NOD_texture.h"

Go to the source code of this file.

Functions

static void valuefn (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_math (bNodeTreeType *ttype)

Variables

static bNodeSocketTemplate inputs []
static bNodeSocketTemplate outputs []

Detailed Description

Definition in file node_texture_math.c.


Function Documentation

static void exec ( void *  data,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]

Definition at line 182 of file node_texture_math.c.

References tex_output(), and valuefn().

Referenced by register_node_type_tex_math().

void register_node_type_tex_math ( bNodeTreeType ttype)
static void valuefn ( float *  out,
TexParams p,
bNode node,
bNodeStack **  in,
short  thread 
) [static]

Definition at line 49 of file node_texture_math.c.

References acos(), KDL::asin(), KDL::atan(), cos(), bNode::custom1, log(), pow(), sin(), KDL::tan(), and tex_input_value().

Referenced by exec().


Variable Documentation

Initial value:
 { 
    { SOCK_FLOAT, 1, "Value", 0.5f, 0.5f, 0.5f, 1.0f, -100.0f, 100.0f, PROP_NONE}, 
    { SOCK_FLOAT, 1, "Value", 0.5f, 0.5f, 0.5f, 1.0f, -100.0f, 100.0f, PROP_NONE}, 
    { -1, 0, "" } 
}

Definition at line 38 of file node_texture_math.c.

Initial value:
 { 
    { SOCK_FLOAT, 0, "Value"}, 
    { -1, 0, "" } 
}

Definition at line 44 of file node_texture_math.c.