Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_brick.c
| Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | static void node_shader_init_tex_brick(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| tex->offset = 0.5f; | tex->offset = 0.5f; | ||||
| tex->squash = 1.0f; | tex->squash = 1.0f; | ||||
| tex->offset_freq = 2; | tex->offset_freq = 2; | ||||
| tex->squash_freq = 2; | tex->squash_freq = 2; | ||||
| node->storage = tex; | node->storage = tex; | ||||
| for (bNodeSocket *sock = node->inputs.first; sock; sock = sock->next) { | LISTBASE_FOREACH (bNodeSocket *, sock, &node->inputs) { | ||||
| if (STREQ(sock->name, "Mortar Smooth")) { | if (STREQ(sock->name, "Mortar Smooth")) { | ||||
| ((bNodeSocketValueFloat *)sock->default_value)->value = 0.1f; | ((bNodeSocketValueFloat *)sock->default_value)->value = 0.1f; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static int node_shader_gpu_tex_brick(GPUMaterial *mat, | static int node_shader_gpu_tex_brick(GPUMaterial *mat, | ||||
| bNode *node, | bNode *node, | ||||
| Show All 35 Lines | |||||