29 switch (
node->custom1) {
76 if (in0 <= 1 && in0 >= -1) {
86 if (in0 <= 1 && in0 >= -1) {
104 float y_mod_1 = fmod(in1, 1);
105 if (y_mod_1 > 0.999f || y_mod_1 < 0.001f) {
116 if (in0 > 0 && in1 > 0) {
143 *
out = (in0 < 0) ? (
int)(in0 - 0.5f) : (
int)(in0 + 0.5f);
172 *
out = fmod(in0, in1);
275 *
out = (
fabsf(in0 - in1) <=
MAX2(in2, 1e-5f)) ? 1.0f : 0.0f;
281 *
out = in0 * in1 + in2;
void node_type_socket_templates(struct bNodeType *ntype, struct bNodeSocketTemplate *inputs, struct bNodeSocketTemplate *outputs)
void node_type_update(struct bNodeType *ntype, void(*updatefunc)(struct bNodeTree *ntree, struct bNode *node))
#define NODE_CLASS_CONVERTER
void node_type_exec(struct bNodeType *ntype, NodeInitExecFunction init_exec_fn, NodeFreeExecFunction free_exec_fn, NodeExecFunction exec_fn)
void nodeRegisterType(struct bNodeType *ntype)
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position CLAMP
MINLINE float smoothminf(float a, float b, float c)
MINLINE float pingpongf(float value, float scale)
MINLINE float compatible_signf(float f)
MINLINE float wrapf(float value, float max, float min)
ccl_device_inline float3 pow(float3 v, float e)
ccl_device_inline float3 log(float3 v)
INLINE Rall1d< T, V, S > atan(const Rall1d< T, V, S > &x)
INLINE Rall1d< T, V, S > atan2(const Rall1d< T, V, S > &y, const Rall1d< T, V, S > &x)
static const pxr::TfToken out("out", pxr::TfToken::Immortal)
void register_node_type_tex_math(void)
static bNodeSocketTemplate outputs[]
static bNodeSocketTemplate inputs[]
static void exec(void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
float tex_input_value(bNodeStack *in, TexParams *params, short thread)
void tex_node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass)
void tex_output(bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *cdata)
void node_math_update(bNodeTree *ntree, bNode *node)
void node_math_label(const bNodeTree *UNUSED(ntree), const bNode *node, char *label, int maxlen)
Compact definition of a node socket.
void(* labelfunc)(const struct bNodeTree *ntree, const struct bNode *node, char *label, int maxlen)