Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_magic.h
| Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | if (distortion != 0.0f) { | ||||
| x /= distortion; | x /= distortion; | ||||
| y /= distortion; | y /= distortion; | ||||
| z /= distortion; | z /= distortion; | ||||
| } | } | ||||
| return make_float3(0.5f - x, 0.5f - y, 0.5f - z); | return make_float3(0.5f - x, 0.5f - y, 0.5f - z); | ||||
| } | } | ||||
| ccl_device_noinline int svm_node_tex_magic(ccl_global const KernelGlobals *kg, | ccl_device_noinline int svm_node_tex_magic( | ||||
| 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) | |||||
| { | { | ||||
| uint depth; | uint depth; | ||||
| uint scale_offset, distortion_offset, co_offset, fac_offset, color_offset; | uint scale_offset, distortion_offset, co_offset, fac_offset, color_offset; | ||||
| svm_unpack_node_uchar3(node.y, &depth, &color_offset, &fac_offset); | svm_unpack_node_uchar3(node.y, &depth, &color_offset, &fac_offset); | ||||
| svm_unpack_node_uchar3(node.z, &co_offset, &scale_offset, &distortion_offset); | svm_unpack_node_uchar3(node.z, &co_offset, &scale_offset, &distortion_offset); | ||||
| uint4 node2 = read_node(kg, &offset); | uint4 node2 = read_node(kg, &offset); | ||||
| Show All 14 Lines | |||||