Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_brick.h
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | ccl_device_noinline_cpu float2 svm_brick(float3 p, | ||||
| else { | else { | ||||
| min_dist = 1.0f - min_dist / mortar_size; | min_dist = 1.0f - min_dist / mortar_size; | ||||
| mortar = (min_dist < mortar_smooth) ? smoothstepf(min_dist / mortar_smooth) : 1.0f; | mortar = (min_dist < mortar_smooth) ? smoothstepf(min_dist / mortar_smooth) : 1.0f; | ||||
| } | } | ||||
| return make_float2(tint, mortar); | return make_float2(tint, mortar); | ||||
| } | } | ||||
| ccl_device_noinline int svm_node_tex_brick(ccl_global const KernelGlobals *kg, | ccl_device_noinline int svm_node_tex_brick( | ||||
| ccl_private ShaderData *sd, | KernelGlobals kg, ccl_private ShaderData *sd, ccl_private float *stack, uint4 node, int offset) | ||||
| ccl_private float *stack, | |||||
| uint4 node, | |||||
| int offset) | |||||
| { | { | ||||
| uint4 node2 = read_node(kg, &offset); | uint4 node2 = read_node(kg, &offset); | ||||
| uint4 node3 = read_node(kg, &offset); | uint4 node3 = read_node(kg, &offset); | ||||
| uint4 node4 = read_node(kg, &offset); | uint4 node4 = read_node(kg, &offset); | ||||
| /* Input and Output Sockets */ | /* Input and Output Sockets */ | ||||
| uint co_offset, color1_offset, color2_offset, mortar_offset, scale_offset; | uint co_offset, color1_offset, color2_offset, mortar_offset, scale_offset; | ||||
| uint mortar_size_offset, bias_offset, brick_width_offset, row_height_offset; | uint mortar_size_offset, bias_offset, brick_width_offset, row_height_offset; | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||