14 {
SOCK_RGBA,
N_(
"Bricks 1"), 0.596f, 0.282f, 0.0f, 1.0f},
15 {
SOCK_RGBA,
N_(
"Bricks 2"), 0.632f, 0.504f, 0.05f, 1.0f},
38 nn = (n * (n * n * 60493 + 19990303) + 1376312589) & 0x7fffffff;
39 return 0.5f * ((
float)nn / 1073741824.0f);
44 const float *co = p->
co;
67 rownum = (int)
floor(
y / row_height);
69 if (
node->custom1 &&
node->custom2) {
70 brick_width *= ((int)(rownum) %
node->custom2) ? 1.0f :
node->custom4;
71 offset = ((
int)(rownum) %
node->custom1) ? 0 : (brick_width *
node->custom3);
76 ins_x = (
x +
offset) - brick_width * bricknum;
77 ins_y =
y - row_height * rownum;
79 tint =
noise((rownum << 16) + (bricknum & 0xFFFF)) + bias;
80 CLAMP(tint, 0.0f, 1.0f);
82 if (ins_x < mortar_thickness || ins_y < mortar_thickness ||
83 ins_x > (brick_width - mortar_thickness) || ins_y > (row_height - mortar_thickness)) {
typedef float(TangentPoint)[2]
void ramp_blend(int type, float r_col[3], float fac, const float col[3])
void node_type_socket_templates(struct bNodeType *ntype, struct bNodeSocketTemplate *inputs, struct bNodeSocketTemplate *outputs)
void node_type_init(struct bNodeType *ntype, void(*initfunc)(struct bNodeTree *ntree, struct bNode *node))
#define NODE_CLASS_PATTERN
void node_type_size_preset(struct bNodeType *ntype, eNodeSizePreset size)
void node_type_exec(struct bNodeType *ntype, NodeInitExecFunction init_exec_fn, NodeFreeExecFunction free_exec_fn, NodeExecFunction exec_fn)
void nodeRegisterType(struct bNodeType *ntype)
MINLINE void copy_v4_v4(float r[4], const float a[4])
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
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
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
static const pxr::TfToken out("out", pxr::TfToken::Immortal)
void register_node_type_tex_bricks(void)
static float noise(int n)
static bNodeSocketTemplate outputs[]
static bNodeSocketTemplate inputs[]
static void exec(void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
static void colorfn(float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
static void init(bNodeTree *UNUSED(ntree), bNode *node)
float tex_input_value(bNodeStack *in, TexParams *params, short thread)
void tex_input_rgba(float *out, 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)
Compact definition of a node socket.