Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_brick.c
| Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | if (!in[0].link) { | ||||
| in[0].link = GPU_attribute(CD_ORCO, ""); | in[0].link = GPU_attribute(CD_ORCO, ""); | ||||
| GPU_link(mat, "generated_from_orco", in[0].link, &in[0].link); | GPU_link(mat, "generated_from_orco", in[0].link, &in[0].link); | ||||
| } | } | ||||
| node_shader_gpu_tex_mapping(mat, node, in, out); | node_shader_gpu_tex_mapping(mat, node, in, out); | ||||
| NodeTexBrick *tex = (NodeTexBrick *)node->storage; | NodeTexBrick *tex = (NodeTexBrick *)node->storage; | ||||
| float offset_freq = tex->offset_freq; | float offset_freq = tex->offset_freq; | ||||
| float squash_freq = tex->squash_freq; | float squash_freq = tex->squash_freq; | ||||
| return GPU_stack_link(mat, "node_tex_brick", | return GPU_stack_link(mat, node, "node_tex_brick", | ||||
| in, out, | in, out, | ||||
| GPU_uniform(&tex->offset), GPU_uniform(&offset_freq), | GPU_uniform(&tex->offset), GPU_uniform(&offset_freq), | ||||
| GPU_uniform(&tex->squash), GPU_uniform(&squash_freq)); | GPU_uniform(&tex->squash), GPU_uniform(&squash_freq)); | ||||
| } | } | ||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_tex_brick(void) | void register_node_type_sh_tex_brick(void) | ||||
| { | { | ||||
| Show All 12 Lines | |||||