|
Blender V5.3
|
#include "gpu_shader_common_hash.bsl.hh"#include "gpu_shader_math_constants.bsl.hh"#include "gpu_shader_math_vector.bsl.hh"Go to the source code of this file.
Macros | |
| #define | SHD_GABOR_TYPE_2D 0.0f |
| #define | SHD_GABOR_TYPE_3D 1.0f |
| #define | IMPULSES_COUNT 8 |
Functions | |
| float2 | compute_2d_gabor_kernel (float2 position, float frequency, float orientation) |
| float | compute_2d_gabor_standard_deviation () |
| float2 | compute_2d_gabor_noise_cell (float2 cell, float2 position, float frequency, float isotropy, float base_orientation) |
| float2 | compute_2d_gabor_noise (float2 coordinates, float frequency, float isotropy, float base_orientation) |
| float2 | compute_3d_gabor_kernel (float3 position, float frequency, float3 orientation) |
| float | compute_3d_gabor_standard_deviation () |
| float3 | compute_3d_orientation (float3 orientation, float isotropy, float4 seed) |
| float2 | compute_3d_gabor_noise_cell (float3 cell, float3 position, float frequency, float isotropy, float3 base_orientation) |
| float2 | compute_3d_gabor_noise (float3 coordinates, float frequency, float isotropy, float3 base_orientation) |
| void | node_tex_gabor (float3 coordinates, float scale, float frequency, float anisotropy, float orientation_2d, float3 orientation_3d, float type, float &output_value, float &output_phase, float &output_intensity) |
| #define IMPULSES_COUNT 8 |
Definition at line 36 of file gpu_shader_material_tex_gabor.bsl.hh.
Referenced by compute_2d_gabor_noise_cell(), compute_2d_gabor_noise_cell(), compute_2d_gabor_standard_deviation(), compute_3d_gabor_noise_cell(), compute_3d_gabor_noise_cell(), and compute_3d_gabor_standard_deviation().
| #define SHD_GABOR_TYPE_2D 0.0f |
Definition at line 27 of file gpu_shader_material_tex_gabor.bsl.hh.
Referenced by node_tex_gabor().
| #define SHD_GABOR_TYPE_3D 1.0f |
Definition at line 28 of file gpu_shader_material_tex_gabor.bsl.hh.
Referenced by node_tex_gabor().
Definition at line 63 of file gpu_shader_material_tex_gabor.bsl.hh.
References angle(), compute_2d_gabor_kernel(), cos, distance_squared(), dot(), exp, frequency, length_squared(), M_PI, position, and sin.
Referenced by compute_2d_gabor_kernel(), compute_2d_gabor_kernel(), compute_2d_gabor_noise_cell(), and compute_2d_gabor_noise_cell().
| float2 compute_2d_gabor_noise | ( | float2 | coordinates, |
| float | frequency, | ||
| float | isotropy, | ||
| float | base_orientation ) |
Definition at line 154 of file gpu_shader_material_tex_gabor.bsl.hh.
References compute_2d_gabor_noise(), compute_2d_gabor_noise_cell(), floor, and frequency.
Referenced by compute_2d_gabor_noise(), compute_2d_gabor_noise(), node_tex_gabor(), and svm_node_tex_gabor().
| float2 compute_2d_gabor_noise_cell | ( | float2 | cell, |
| float2 | position, | ||
| float | frequency, | ||
| float | isotropy, | ||
| float | base_orientation ) |
Definition at line 116 of file gpu_shader_material_tex_gabor.bsl.hh.
References compute_2d_gabor_kernel(), compute_2d_gabor_noise_cell(), frequency, hash_vec3_to_float(), hash_vec3_to_vec2(), IMPULSES_COUNT, length_squared(), M_PI, noise(), and position.
Referenced by compute_2d_gabor_noise(), compute_2d_gabor_noise(), compute_2d_gabor_noise_cell(), and compute_2d_gabor_noise_cell().
| float compute_2d_gabor_standard_deviation | ( | ) |
Definition at line 103 of file gpu_shader_material_tex_gabor.bsl.hh.
References compute_2d_gabor_standard_deviation(), IMPULSES_COUNT, and sqrt.
Referenced by compute_2d_gabor_standard_deviation(), node_tex_gabor(), and svm_node_tex_gabor().
Definition at line 182 of file gpu_shader_material_tex_gabor.bsl.hh.
References angle(), compute_3d_gabor_kernel(), cos, distance_squared(), dot(), exp, frequency, length_squared(), M_PI, position, and sin.
Referenced by compute_3d_gabor_kernel(), compute_3d_gabor_kernel(), compute_3d_gabor_noise_cell(), and compute_3d_gabor_noise_cell().
| float2 compute_3d_gabor_noise | ( | float3 | coordinates, |
| float | frequency, | ||
| float | isotropy, | ||
| float3 | base_orientation ) |
Definition at line 265 of file gpu_shader_material_tex_gabor.bsl.hh.
References compute_3d_gabor_noise(), compute_3d_gabor_noise_cell(), floor, and frequency.
Referenced by compute_3d_gabor_noise(), compute_3d_gabor_noise(), node_tex_gabor(), and svm_node_tex_gabor().
| float2 compute_3d_gabor_noise_cell | ( | float3 | cell, |
| float3 | position, | ||
| float | frequency, | ||
| float | isotropy, | ||
| float3 | base_orientation ) |
Definition at line 233 of file gpu_shader_material_tex_gabor.bsl.hh.
References compute_3d_gabor_kernel(), compute_3d_gabor_noise_cell(), compute_3d_orientation(), frequency, hash_vec4_to_float(), hash_vec4_to_vec3(), IMPULSES_COUNT, length_squared(), noise(), and position.
Referenced by compute_3d_gabor_noise(), compute_3d_gabor_noise(), compute_3d_gabor_noise_cell(), and compute_3d_gabor_noise_cell().
| float compute_3d_gabor_standard_deviation | ( | ) |
Definition at line 199 of file gpu_shader_material_tex_gabor.bsl.hh.
References compute_3d_gabor_standard_deviation(), IMPULSES_COUNT, M_SQRT2, and sqrt.
Referenced by compute_3d_gabor_standard_deviation(), node_tex_gabor(), and svm_node_tex_gabor().
Definition at line 209 of file gpu_shader_material_tex_gabor.bsl.hh.
References acos, compute_3d_orientation(), cos, hash_vec4_to_vec2(), length(), M_PI, sign(), sin, float2::x, float3::x, float2::y, float3::y, and float3::z.
Referenced by compute_3d_gabor_noise_cell(), compute_3d_gabor_noise_cell(), compute_3d_orientation(), and compute_3d_orientation().
| void node_tex_gabor | ( | float3 | coordinates, |
| float | scale, | ||
| float | frequency, | ||
| float | anisotropy, | ||
| float | orientation_2d, | ||
| float3 | orientation_3d, | ||
| float | type, | ||
| float & | output_value, | ||
| float & | output_phase, | ||
| float & | output_intensity ) |
Definition at line 290 of file gpu_shader_material_tex_gabor.bsl.hh.
References atan, clamp(), compute_2d_gabor_noise(), compute_2d_gabor_standard_deviation(), compute_3d_gabor_noise(), compute_3d_gabor_standard_deviation(), frequency, length(), M_PI, max, node_tex_gabor(), normalize, scale(), SHD_GABOR_TYPE_2D, SHD_GABOR_TYPE_3D, float2::x, and float2::y.
Referenced by node_tex_gabor().