Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_musgrave.h
| Show First 20 Lines • Show All 694 Lines • ▼ Show 20 Lines | for (int i = 1; i < float_to_int(octaves); i++) { | ||||
| signal *= weight; | signal *= weight; | ||||
| value += signal * pwr; | value += signal * pwr; | ||||
| pwr *= pwHL; | pwr *= pwHL; | ||||
| } | } | ||||
| return value; | return value; | ||||
| } | } | ||||
| ccl_device_noinline int svm_node_tex_musgrave(ccl_global const KernelGlobals *kg, | ccl_device_noinline int svm_node_tex_musgrave(KernelGlobals kg, | ||||
| ccl_private ShaderData *sd, | ccl_private ShaderData *sd, | ||||
| ccl_private float *stack, | ccl_private float *stack, | ||||
| uint offsets1, | uint offsets1, | ||||
| uint offsets2, | uint offsets2, | ||||
| uint offsets3, | uint offsets3, | ||||
| int offset) | int offset) | ||||
| { | { | ||||
| uint type, dimensions, co_stack_offset, w_stack_offset; | uint type, dimensions, co_stack_offset, w_stack_offset; | ||||
| ▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines | |||||