|
Blender V4.3
|
#include "BKE_material.h"#include "BKE_texture.h"#include "BLI_math_vector.h"#include "DNA_material_types.h"#include "node_texture_util.hh"#include "node_util.hh"#include "RE_texture.h"Go to the source code of this file.
Macros | |
| #define | I 2 /* count */ |
| #define | COMMON_INPUTS |
| #define | ProcNoInputs(name) |
| #define | ProcDef(name) |
| #define | TexDef(TEXTYPE, outputs, name, Name) |
| #define | C outputs_color_only |
| #define | CV outputs_both |
Typedefs | |
| using | MapFn = void (*)(Tex *tex, bNodeStack **in, TexParams *p, const short thread) |
Functions | |
| static void | do_proc (float *result, TexParams *p, const float col1[4], const float col2[4], Tex *tex, const short thread) |
| static void | texfn (float *result, TexParams *p, bNode *node, bNodeStack **in, MapFn map_inputs, short thread) |
| static int | count_outputs (bNode *node) |
| static void | voronoi_map_inputs (Tex *tex, bNodeStack **in, TexParams *p, short thread) |
| ProcDef (voronoi) | |
| ProcNoInputs (blend) | |
| ProcDef (blend) | |
| static void | magic_map_inputs (Tex *tex, bNodeStack **in, TexParams *p, short thread) |
| ProcDef (magic) | |
| static void | marble_map_inputs (Tex *tex, bNodeStack **in, TexParams *p, short thread) |
| ProcDef (marble) | |
| static void | clouds_map_inputs (Tex *tex, bNodeStack **in, TexParams *p, short thread) |
| ProcDef (clouds) | |
| static void | distnoise_map_inputs (Tex *tex, bNodeStack **in, TexParams *p, short thread) |
| ProcDef (distnoise) | |
| static void | wood_map_inputs (Tex *tex, bNodeStack **in, TexParams *p, short thread) |
| ProcDef (wood) | |
| static void | musgrave_map_inputs (Tex *tex, bNodeStack **in, TexParams *p, short thread) |
| ProcDef (musgrave) | |
| ProcNoInputs (noise) | |
| ProcDef (noise) | |
| static void | stucci_map_inputs (Tex *tex, bNodeStack **in, TexParams *p, short thread) |
| ProcDef (stucci) | |
| static void | init (bNodeTree *, bNode *node) |
| TexDef (TEX_VORONOI, CV, voronoi, "Voronoi") TexDef(TEX_BLEND | |
| TexDef (TEX_MAGIC, C, magic, "Magic") TexDef(TEX_MARBLE | |
| TexDef (TEX_CLOUDS, CV, clouds, "Clouds") TexDef(TEX_WOOD | |
| TexDef (TEX_MUSGRAVE, CV, musgrave, "Musgrave") TexDef(TEX_NOISE | |
| TexDef (TEX_STUCCI, CV, stucci, "Stucci") | |
| TexDef (TEX_DISTNOISE, CV, distnoise, "Distorted Noise") | |
Variables | |
| static blender::bke::bNodeSocketTemplate | outputs_both [] |
| static blender::bke::bNodeSocketTemplate | outputs_color_only [] |
| static blender::bke::bNodeSocketTemplate | voronoi_inputs [] |
| static blender::bke::bNodeSocketTemplate | blend_inputs [] = {COMMON_INPUTS, {-1, ""}} |
| static blender::bke::bNodeSocketTemplate | magic_inputs [] |
| static blender::bke::bNodeSocketTemplate | marble_inputs [] |
| static blender::bke::bNodeSocketTemplate | clouds_inputs [] |
| static blender::bke::bNodeSocketTemplate | distnoise_inputs [] |
| static blender::bke::bNodeSocketTemplate | wood_inputs [] |
| static blender::bke::bNodeSocketTemplate | musgrave_inputs [] |
| static blender::bke::bNodeSocketTemplate | noise_inputs [] = {COMMON_INPUTS, {-1, ""}} |
| static blender::bke::bNodeSocketTemplate | stucci_inputs [] |
| C | |
| blend | |
| Blend | |
| CV | |
| marble | |
| Marble | |
| wood | |
| Wood | |
| noise | |
| Noise | |
Definition at line 271 of file node_texture_proc.cc.
| #define COMMON_INPUTS |
Definition at line 29 of file node_texture_proc.cc.
| #define CV outputs_both |
Definition at line 272 of file node_texture_proc.cc.
Referenced by BKE_idtype_idcode_to_index(), and BKE_idtype_idfilter_to_index().
Definition at line 28 of file node_texture_proc.cc.
Referenced by btDeformableLinearElasticityForce::addScaledDampingForce(), btDeformableNeoHookeanForce::addScaledDampingForce(), btDeformableLinearElasticityForce::addScaledDampingForceDifferential(), btDeformableNeoHookeanForce::addScaledDampingForceDifferential(), btDeformableLinearElasticityForce::addScaledHessian(), btSoftBody::applyRepulsionForce(), blender::ValueSequence< T, Elements >::at_index(), blinn_specular(), bump_shadowing_term(), clouds_map_inputs(), btRigidBody::computeGyroscopicImpulseImplicit_World(), libmv::ComputeTrackingEquation(), libmv::ComputeTrackingEquation(), Freestyle::computeVisibility(), distnoise_map_inputs(), ensure_valid_specular_reflection(), evalEulerEqn(), evalEulerEqnDeriv(), blender::fn::multi_function::build::detail::execute_element_fn_as_multi_function(), blender::fn::lazy_function::detail::execute_lazy_function_eagerly_impl(), film_adaptive_sampling_convergence_check(), Freestyle::findOccludee(), guiding_record_volume_segment(), light_pdf_area_to_solid_angle(), magic_map_inputs(), marble_map_inputs(), mirrorball_to_direction(), musgrave_map_inputs(), btDeformableBackwardEulerObjective::reinitialize(), libmv::SelectKeyframesBasedOnGRICAndVariance(), shader_setup_from_displace(), shader_setup_from_sample(), stucci_map_inputs(), studiolight_lights_eval(), triangle_light_pdf_area_sampling(), blender::unroll_impl(), voronoi_map_inputs(), and wood_map_inputs().
| #define ProcDef | ( | name | ) |
Definition at line 91 of file node_texture_proc.cc.
| #define ProcNoInputs | ( | name | ) |
Definition at line 85 of file node_texture_proc.cc.
| #define TexDef | ( | TEXTYPE, | |
| outputs, | |||
| name, | |||
| Name ) |
Definition at line 254 of file node_texture_proc.cc.
Definition at line 59 of file node_texture_proc.cc.
|
static |
Definition at line 168 of file node_texture_proc.cc.
References I, Tex::noisesize, tex, and tex_input_value().
Definition at line 74 of file node_texture_proc.cc.
References LISTBASE_FOREACH.
|
static |
Definition at line 180 of file node_texture_proc.cc.
References Tex::dist_amount, I, Tex::noisesize, tex, and tex_input_value().
|
static |
Definition at line 37 of file node_texture_proc.cc.
References TexParams::co, copy_v4_v4(), TexParams::dxt, TexParams::dyt, MA_RAMP_BLEND, TexParams::mtex, multitex_nodes(), TexParams::osatex, ramp_blend(), tex, TEX_RGB, TexResult::tin, and TexResult::trgba.
Referenced by texfn().
Definition at line 240 of file node_texture_proc.cc.
References BKE_texture_default(), MEM_callocN, Tex::stype, tex, TEX_BANDNOISE, TEX_NODE_PROC, and Tex::type.
|
static |
Definition at line 144 of file node_texture_proc.cc.
References I, tex, tex_input_value(), and Tex::turbul.
|
static |
Definition at line 156 of file node_texture_proc.cc.
References I, Tex::noisesize, tex, tex_input_value(), and Tex::turbul.
|
static |
Definition at line 210 of file node_texture_proc.cc.
References I, Tex::mg_H, Tex::mg_lacunarity, Tex::mg_octaves, Tex::noisesize, Tex::ns_outscale, tex, and tex_input_value().
| ProcDef | ( | blend | ) |
| ProcDef | ( | clouds | ) |
| ProcDef | ( | distnoise | ) |
| ProcDef | ( | magic | ) |
| ProcDef | ( | marble | ) |
| ProcDef | ( | musgrave | ) |
| ProcDef | ( | noise | ) |
| ProcDef | ( | stucci | ) |
| ProcDef | ( | voronoi | ) |
| ProcDef | ( | wood | ) |
| ProcNoInputs | ( | blend | ) |
| ProcNoInputs | ( | noise | ) |
|
static |
Definition at line 231 of file node_texture_proc.cc.
References I, Tex::noisesize, tex, tex_input_value(), and Tex::turbul.
| TexDef | ( | TEX_DISTNOISE | , |
| CV | , | ||
| distnoise | , | ||
| "Distorted Noise" | ) |
| TexDef | ( | TEX_MUSGRAVE | , |
| CV | , | ||
| musgrave | , | ||
| "Musgrave" | ) |
| TexDef | ( | TEX_VORONOI | , |
| CV | , | ||
| voronoi | , | ||
| "Voronoi" | ) |
|
static |
Definition at line 61 of file node_texture_proc.cc.
References do_proc(), tex, and tex_input_rgba().
Referenced by tex_output().
|
static |
Definition at line 122 of file node_texture_proc.cc.
References I, Tex::noisesize, Tex::ns_outscale, tex, tex_input_value(), Tex::vn_w1, Tex::vn_w2, Tex::vn_w3, and Tex::vn_w4.
|
static |
Definition at line 193 of file node_texture_proc.cc.
References I, Tex::noisesize, tex, tex_input_value(), and Tex::turbul.
| Blend |
Definition at line 274 of file node_texture_proc.cc.
Referenced by do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), blender::color::mix_colordodge(), blender::color::mix_hue(), blender::color::mix_luminosity(), and blender::color::mix_saturation().
| blend |
Definition at line 274 of file node_texture_proc.cc.
Referenced by armdef_accumulate_bone(), b_bone_deform(), BKE_brush_debug_print_state(), BKE_defvert_weight_to_rgb(), BKE_pchan_bbone_deform_clamp_segment_index(), blender::animrig::blend_layer_results(), blo_do_versions_280(), brush_defaults(), btw_smooth_exec(), calculate_average_color(), checker_board_color_tint(), checker_board_grid_fill(), blender::compositor::HueSaturationValueCorrectNode::convert_to_operations(), blender::compositor::HueSaturationValueNode::convert_to_operations(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), drw_state_set(), ease_fcurve_segment(), edbm_blend_from_shape_exec(), blender::gpu::shader::ShaderCreateInfo::fragment_out(), get_cpa_texture(), slim::get_interactive_result_blended_with_original(), GPU_blend(), GPU_state_set(), load_main_from_memory(), multitex(), NODE_DEFINE(), blender::nodes::node_shader_tex_image_cc::node_shader_gpu_tex_image(), blender::geometry::p_flush_uvs(), paint_2d_do_making_brush(), paint_2d_op(), psys_get_texture(), pygpu_state_blend_get(), rna_def_modifier_type_common(), svm_node_layer_weight(), svm_node_tex_image_box(), slim::MatrixTransferChart::transfer_uvs_blended(), UI_GetThemeColorBlendShade3ubv(), blender::geometry::uv_parametrizer_slim_stretch_iteration(), blender::geometry::uv_parametrizer_stretch_blend(), vpaint_blend(), wm_draw_region_blend(), and wpaint_blend().
|
static |
Definition at line 135 of file node_texture_proc.cc.
| C |
Definition at line 274 of file node_texture_proc.cc.
|
static |
Definition at line 164 of file node_texture_proc.cc.
| CV |
Definition at line 275 of file node_texture_proc.cc.
|
static |
Definition at line 175 of file node_texture_proc.cc.
|
static |
Definition at line 140 of file node_texture_proc.cc.
| Marble |
Definition at line 275 of file node_texture_proc.cc.
| marble |
Definition at line 275 of file node_texture_proc.cc.
Referenced by multitex().
|
static |
Definition at line 151 of file node_texture_proc.cc.
|
static |
Definition at line 201 of file node_texture_proc.cc.
| Noise |
Definition at line 277 of file node_texture_proc.cc.
Referenced by FrsNoise_init().
| noise |
Definition at line 277 of file node_texture_proc.cc.
Referenced by add_node(), colorfn(), compute_2d_gabor_noise_cell(), compute_3d_gabor_noise_cell(), blender::ed::sculpt_paint::color::do_paint_brush_task(), fcm_noise_evaluate(), safe_noise(), safe_noise(), safe_noise(), safe_noise(), safe_snoise(), safe_snoise(), safe_snoise(), safe_snoise(), Freestyle::SpatialNoiseShader::shade(), and MANTA::updatePointers().
|
static |
Definition at line 221 of file node_texture_proc.cc.
|
static |
Definition at line 22 of file node_texture_proc.cc.
|
static |
Definition at line 24 of file node_texture_proc.cc.
|
static |
Definition at line 226 of file node_texture_proc.cc.
|
static |
Definition at line 111 of file node_texture_proc.cc.
| Wood |
Definition at line 276 of file node_texture_proc.cc.
| wood |
Definition at line 276 of file node_texture_proc.cc.
Referenced by multitex().
|
static |
Definition at line 188 of file node_texture_proc.cc.