![]() |
Blender V2.61 - r43446
|
#include <math.h>#include "node_texture_util.h"Go to the source code of this file.
Functions | |
| static void | colorfn (float *out, TexParams *p, bNode *UNUSED(node), bNodeStack **in, short thread) |
| static void | exec (void *data, bNode *node, bNodeStack **in, bNodeStack **out) |
| void | register_node_type_tex_scale (bNodeTreeType *ttype) |
Variables | |
| static bNodeSocketTemplate | inputs [] |
| static bNodeSocketTemplate | outputs [] |
Definition in file node_texture_scale.c.
| static void colorfn | ( | float * | out, |
| TexParams * | p, | ||
| bNode * | UNUSEDnode, | ||
| bNodeStack ** | in, | ||
| short | thread | ||
| ) | [static] |
Definition at line 47 of file node_texture_scale.c.
References TexParams::co, TexParams::dxt, TexParams::dyt, mul_v3_v3v3(), TexParams::osatex, p, tex_input_rgba(), and tex_input_vec().
Referenced by exec().
| static void exec | ( | void * | data, |
| bNode * | node, | ||
| bNodeStack ** | in, | ||
| bNodeStack ** | out | ||
| ) | [static] |
Definition at line 66 of file node_texture_scale.c.
References colorfn(), and tex_output().
Referenced by register_node_type_tex_scale().
| void register_node_type_tex_scale | ( | bNodeTreeType * | ttype | ) |
Definition at line 71 of file node_texture_scale.c.
References exec(), NODE_CLASS_DISTORT, NODE_OPTIONS, node_type_base(), node_type_exec(), node_type_size(), node_type_socket_templates(), nodeRegisterType(), and TEX_NODE_SCALE.
Referenced by registerTextureNodes().
bNodeSocketTemplate inputs[] [static] |
{
{ SOCK_RGBA, 1, "Color", 0.0f, 0.0f, 0.0f, 1.0f },
{ SOCK_VECTOR, 1, "Scale", 1.0f, 1.0f, 1.0f, 0.0f, -10.0f, 10.0f, PROP_XYZ },
{ -1, 0, "" }
}
Definition at line 36 of file node_texture_scale.c.
bNodeSocketTemplate outputs[] [static] |
{
{ SOCK_RGBA, 0, "Color"},
{ -1, 0, "" }
}
Definition at line 42 of file node_texture_scale.c.