34 switch (
node->custom1) {
81 if (in0 <= 1 && in0 >= -1) {
91 if (in0 <= 1 && in0 >= -1) {
109 float y_mod_1 =
fmod(in1, 1);
110 if (y_mod_1 > 0.999f || y_mod_1 < 0.001f) {
121 if (in0 > 0 && in1 > 0) {
148 *
out = (in0 < 0) ?
int(in0 - 0.5f) : int(in0 + 0.5f);
290 *
out = (
fabsf(in0 - in1) <= std::max(in2, 1e-5f)) ? 1.0f : 0.0f;
296 *
out = in0 * in1 + in2;
335 switch (
node->custom1) {
#define NODE_CLASS_CONVERTER
ccl_device_inline float2 fmod(const float2 a, const float b)
void node_register_type(bNodeType &ntype)
void node_type_socket_templates(bNodeType *ntype, bNodeSocketTemplate *inputs, bNodeSocketTemplate *outputs)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void node_math_label(const bNodeTree *, const bNode *node, char *label, int label_maxncpy)
MINLINE float wrapf(float value, float max, float min)
static void exec(void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
static void node_update(bNodeTree *ntree, bNode *node)
void register_node_type_tex_math()
void node_math_update(bNodeTree *ntree, bNode *node)
@ NODE_MATH_FLOORED_MODULO
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void node_sock_label(bNodeSocket *sock, const char *name)
void node_sock_label_clear(bNodeSocket *sock)
BMesh const char void * data
void tex_output(bNode *node, bNodeExecData *, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *cdata)
MINLINE float pingpongf(float value, float scale)
static bke::bNodeSocketTemplate inputs[]
void tex_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
MINLINE float compatible_signf(float f)
MINLINE float smoothminf(float a, float b, float c)
float tex_input_value(bNodeStack *in, TexParams *params, short thread)
static void valuefn(float *out, TexParams *p, bNode *, bNodeStack **in, short thread)
static bke::bNodeSocketTemplate outputs[]
Compact definition of a node socket.
void(*) updatefunc(bNodeTree *ntree, bNode *node)
void(*) labelfunc(const bNodeTree *ntree, const bNode *node, char *label, int label_maxncpy)
const char * enum_name_legacy