Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_noisetex.h
| Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | ccl_device void noise_texture_4d(float4 co, | ||||
| *value = fractal_noise_4d(p, detail, roughness); | *value = fractal_noise_4d(p, detail, roughness); | ||||
| if (color_is_needed) { | if (color_is_needed) { | ||||
| *color = make_float3(*value, | *color = make_float3(*value, | ||||
| fractal_noise_4d(p + random_float4_offset(4.0f), detail, roughness), | fractal_noise_4d(p + random_float4_offset(4.0f), detail, roughness), | ||||
| fractal_noise_4d(p + random_float4_offset(5.0f), detail, roughness)); | fractal_noise_4d(p + random_float4_offset(5.0f), detail, roughness)); | ||||
| } | } | ||||
| } | } | ||||
| ccl_device_noinline int svm_node_tex_noise(ccl_global const KernelGlobals *kg, | ccl_device_noinline int svm_node_tex_noise(KernelGlobals kg, | ||||
| ccl_private ShaderData *sd, | ccl_private ShaderData *sd, | ||||
| ccl_private float *stack, | ccl_private float *stack, | ||||
| uint dimensions, | uint dimensions, | ||||
| uint offsets1, | uint offsets1, | ||||
| uint offsets2, | uint offsets2, | ||||
| int offset) | int offset) | ||||
| { | { | ||||
| uint vector_stack_offset, w_stack_offset, scale_stack_offset; | uint vector_stack_offset, w_stack_offset, scale_stack_offset; | ||||
| ▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines | |||||