Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/texture/nodes/node_texture_checker.c
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| tex_output(node, execdata, in, out[0], &colorfn, data); | tex_output(node, execdata, in, out[0], &colorfn, data); | ||||
| } | } | ||||
| void register_node_type_tex_checker(void) | void register_node_type_tex_checker(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| tex_node_type_base(&ntype, TEX_NODE_CHECKER, "Checker", NODE_CLASS_PATTERN, NODE_PREVIEW); | tex_node_type_base(&ntype, TEX_NODE_CHECKER, "Checker", NODE_CLASS_PATTERN); | ||||
| node_type_socket_templates(&ntype, inputs, outputs); | node_type_socket_templates(&ntype, inputs, outputs); | ||||
| node_type_exec(&ntype, NULL, NULL, exec); | node_type_exec(&ntype, NULL, NULL, exec); | ||||
| ntype.flag = NODE_PREVIEW; | |||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||