Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_wave.h
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | else if (profile == NODE_WAVE_PROFILE_SAW) { | ||||
| return n - floorf(n); | return n - floorf(n); | ||||
| } | } | ||||
| else { /* NODE_WAVE_PROFILE_TRI */ | else { /* NODE_WAVE_PROFILE_TRI */ | ||||
| n /= M_2PI_F; | n /= M_2PI_F; | ||||
| return fabsf(n - floorf(n + 0.5f)) * 2.0f; | return fabsf(n - floorf(n + 0.5f)) * 2.0f; | ||||
| } | } | ||||
| } | } | ||||
| ccl_device_noinline int svm_node_tex_wave(ccl_global const KernelGlobals *kg, | ccl_device_noinline int svm_node_tex_wave( | ||||
| 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); | ||||
| /* RNA properties */ | /* RNA properties */ | ||||
| uint type_offset, bands_dir_offset, rings_dir_offset, profile_offset; | uint type_offset, bands_dir_offset, rings_dir_offset, profile_offset; | ||||
| /* Inputs, Outputs */ | /* Inputs, Outputs */ | ||||
| uint co_offset, scale_offset, distortion_offset, detail_offset, dscale_offset, droughness_offset, | uint co_offset, scale_offset, distortion_offset, detail_offset, dscale_offset, droughness_offset, | ||||
| Show All 37 Lines | |||||