|
Blender V5.3
|
#include "kernel/svm/fractal_noise.h"#include "kernel/svm/node_types.h"#include "kernel/svm/util.h"Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline float | random_float_offset (const float seed) |
| ccl_device_inline float2 | random_float2_offset (const float seed) |
| ccl_device_inline float3 | random_float3_offset (const float seed) |
| ccl_device_inline float4 | random_float4_offset (const float seed) |
| template<typename T> | |
| ccl_device float | noise_select (T p, const float detail, const float roughness, const float lacunarity, const float offset, const float gain, const int type, bool normalize) |
| ccl_device void | noise_texture_1d (const float co, const float detail, const float roughness, const float lacunarity, const float offset, const float gain, const float distortion, const int type, bool normalize, bool color_is_needed, ccl_private float *value, ccl_private float3 *color) |
| ccl_device void | noise_texture_2d (const float2 co, const float detail, const float roughness, const float lacunarity, const float offset, const float gain, const float distortion, const int type, const bool normalize, const bool color_is_needed, ccl_private float *value, ccl_private float3 *color) |
| ccl_device void | noise_texture_3d (const float3 co, const float detail, const float roughness, const float lacunarity, const float offset, const float gain, const float distortion, const int type, const bool normalize, const bool color_is_needed, ccl_private float *value, ccl_private float3 *color) |
| ccl_device void | noise_texture_4d (const float4 co, const float detail, const float roughness, const float lacunarity, const float offset, const float gain, const float distortion, const int type, const bool normalize, const bool color_is_needed, ccl_private float *value, ccl_private float3 *color) |
| ccl_device_noinline void | svm_node_tex_noise (ccl_private float *ccl_restrict stack, const ccl_global SVMNodeTexNoise &ccl_restrict node) |
| ccl_device float noise_select | ( | T | p, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity, | ||
| const float | offset, | ||
| const float | gain, | ||
| const int | type, | ||
| bool | normalize ) |
Definition at line 48 of file noisetex.h.
References ccl_device, kernel_assert, NODE_NOISE_FBM, NODE_NOISE_HETERO_TERRAIN, NODE_NOISE_HYBRID_MULTIFRACTAL, NODE_NOISE_MULTIFRACTAL, NODE_NOISE_RIDGED_MULTIFRACTAL, noise_fbm(), noise_hetero_terrain(), noise_hybrid_multi_fractal(), noise_multi_fractal(), noise_ridged_multi_fractal(), noise_select(), normalize, and T.
Referenced by noise_select(), noise_texture_1d(), noise_texture_2d(), noise_texture_3d(), and noise_texture_4d().
| ccl_device void noise_texture_1d | ( | const float | co, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity, | ||
| const float | offset, | ||
| const float | gain, | ||
| const float | distortion, | ||
| const int | type, | ||
| bool | normalize, | ||
| bool | color_is_needed, | ||
| ccl_private float * | value, | ||
| ccl_private float3 * | color ) |
Definition at line 80 of file noisetex.h.
References ccl_device, ccl_private, make_float3(), noise_select(), noise_texture_1d(), normalize, random_float_offset(), and snoise_1d().
Referenced by noise_texture_1d(), and svm_node_tex_noise().
| ccl_device void noise_texture_2d | ( | const float2 | co, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity, | ||
| const float | offset, | ||
| const float | gain, | ||
| const float | distortion, | ||
| const int | type, | ||
| const bool | normalize, | ||
| const bool | color_is_needed, | ||
| ccl_private float * | value, | ||
| ccl_private float3 * | color ) |
Definition at line 120 of file noisetex.h.
References ccl_device, ccl_private, make_float2, make_float3(), noise_select(), noise_texture_2d(), normalize, random_float2_offset(), and snoise_2d().
Referenced by noise_texture_2d(), and svm_node_tex_noise().
| ccl_device void noise_texture_3d | ( | const float3 | co, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity, | ||
| const float | offset, | ||
| const float | gain, | ||
| const float | distortion, | ||
| const int | type, | ||
| const bool | normalize, | ||
| const bool | color_is_needed, | ||
| ccl_private float * | value, | ||
| ccl_private float3 * | color ) |
Definition at line 161 of file noisetex.h.
References ccl_device, ccl_private, make_float3(), noise_select(), noise_texture_3d(), normalize, random_float3_offset(), and snoise_3d().
Referenced by noise_texture_3d(), and svm_node_tex_noise().
| ccl_device void noise_texture_4d | ( | const float4 | co, |
| const float | detail, | ||
| const float | roughness, | ||
| const float | lacunarity, | ||
| const float | offset, | ||
| const float | gain, | ||
| const float | distortion, | ||
| const int | type, | ||
| const bool | normalize, | ||
| const bool | color_is_needed, | ||
| ccl_private float * | value, | ||
| ccl_private float3 * | color ) |
Definition at line 203 of file noisetex.h.
References ccl_device, ccl_private, make_float3(), make_float4, noise_select(), noise_texture_4d(), normalize, random_float4_offset(), and snoise_4d().
Referenced by noise_texture_4d(), and svm_node_tex_noise().
| ccl_device_inline float2 random_float2_offset | ( | const float | seed | ) |
Definition at line 26 of file noisetex.h.
References ccl_device_inline, hash_float2_to_float(), make_float2, and random_float2_offset().
Referenced by noise_texture_2d(), and random_float2_offset().
| ccl_device_inline float3 random_float3_offset | ( | const float | seed | ) |
Definition at line 32 of file noisetex.h.
References ccl_device_inline, hash_float2_to_float(), make_float2, make_float3(), and random_float3_offset().
Referenced by noise_texture_3d(), and random_float3_offset().
| ccl_device_inline float4 random_float4_offset | ( | const float | seed | ) |
Definition at line 39 of file noisetex.h.
References ccl_device_inline, hash_float2_to_float(), make_float2, make_float4, and random_float4_offset().
Referenced by noise_texture_4d(), and random_float4_offset().
| CCL_NAMESPACE_BEGIN ccl_device_inline float random_float_offset | ( | const float | seed | ) |
Definition at line 21 of file noisetex.h.
References ccl_device_inline, hash_float_to_float(), and random_float_offset().
| ccl_device_noinline void svm_node_tex_noise | ( | ccl_private float *ccl_restrict | stack, |
| const ccl_global SVMNodeTexNoise &ccl_restrict | node ) |
Definition at line 246 of file noisetex.h.
References ccl_device_noinline, ccl_global, ccl_private, ccl_restrict, clamp(), fmaxf, kernel_assert, make_float2, make_float4, node, noise_texture_1d(), noise_texture_2d(), noise_texture_3d(), noise_texture_4d(), scale(), stack_load(), stack_load_float3(), stack_store_float(), stack_store_float3(), stack_valid(), svm_node_tex_noise(), and w().
Referenced by svm_eval_nodes(), and svm_node_tex_noise().