Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_light_path.h
| Show All 13 Lines | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* Light Path Node */ | /* Light Path Node */ | ||||
| ccl_device_noinline void svm_node_light_path(INTEGRATOR_STATE_CONST_ARGS, | ccl_device_noinline void svm_node_light_path(INTEGRATOR_STATE_CONST_ARGS, | ||||
| const ShaderData *sd, | ccl_private const ShaderData *sd, | ||||
| float *stack, | ccl_private float *stack, | ||||
| uint type, | uint type, | ||||
| uint out_offset, | uint out_offset, | ||||
| int path_flag) | int path_flag) | ||||
| { | { | ||||
| float info = 0.0f; | float info = 0.0f; | ||||
| switch (type) { | switch (type) { | ||||
| case NODE_LP_camera: | case NODE_LP_camera: | ||||
| ▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| } | } | ||||
| stack_store_float(stack, out_offset, info); | stack_store_float(stack, out_offset, info); | ||||
| } | } | ||||
| /* Light Falloff Node */ | /* Light Falloff Node */ | ||||
| ccl_device_noinline void svm_node_light_falloff(ShaderData *sd, float *stack, uint4 node) | ccl_device_noinline void svm_node_light_falloff(ccl_private ShaderData *sd, | ||||
| ccl_private float *stack, | |||||
| uint4 node) | |||||
| { | { | ||||
| uint strength_offset, out_offset, smooth_offset; | uint strength_offset, out_offset, smooth_offset; | ||||
| svm_unpack_node_uchar3(node.z, &strength_offset, &smooth_offset, &out_offset); | svm_unpack_node_uchar3(node.z, &strength_offset, &smooth_offset, &out_offset); | ||||
| float strength = stack_load_float(stack, strength_offset); | float strength = stack_load_float(stack, strength_offset); | ||||
| uint type = node.y; | uint type = node.y; | ||||
| Show All 25 Lines | |||||