|
Blender V5.0
|
#include "BKE_material.hh"#include "BKE_texture.h"#include "BLI_listbase.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 {SOCK_RGBA, "Color 1", 0.0f, 0.0f, 0.0f, 1.0f}, {SOCK_RGBA, "Color 2", 1.0f, 1.0f, 1.0f, 1.0f} |
| #define | ProcNoInputs(name) |
| #define | ProcDef(name) |
| #define | TexDef(TEXTYPE, idname, outputs, name, Name, EnumNameLegacy) |
| #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, "TextureNodeTexVoronoi", CV, voronoi, "Voronoi", "TEX_VORONOI") | |
| TexDef (TEX_BLEND, "TextureNodeTexBlend", C, blend, "Blend", "TEX_BLEND") | |
| TexDef (TEX_MAGIC, "TextureNodeTexMagic", C, magic, "Magic", "TEX_MAGIC") | |
| TexDef (TEX_MARBLE, "TextureNodeTexMarble", CV, marble, "Marble", "TEX_MARBLE") | |
| TexDef (TEX_CLOUDS, "TextureNodeTexClouds", CV, clouds, "Clouds", "TEX_CLOUDS") | |
| TexDef (TEX_WOOD, "TextureNodeTexWood", CV, wood, "Wood", "TEX_WOOD") | |
| TexDef (TEX_MUSGRAVE, "TextureNodeTexMusgrave", CV, musgrave, "Musgrave", "TEX_MUSGRAVE") | |
| TexDef (TEX_NOISE, "TextureNodeTexNoise", C, noise, "Noise", "TEX_NOISE") | |
| TexDef (TEX_STUCCI, "TextureNodeTexStucci", CV, stucci, "Stucci", "TEX_STUCCI") | |
| TexDef (TEX_DISTNOISE, "TextureNodeTexDistNoise", CV, distnoise, "Distorted Noise", "TEX_DISTNOISE") | |
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 [] |
| #define C outputs_color_only |
Definition at line 271 of file node_texture_proc.cc.
| #define COMMON_INPUTS {SOCK_RGBA, "Color 1", 0.0f, 0.0f, 0.0f, 1.0f}, {SOCK_RGBA, "Color 2", 1.0f, 1.0f, 1.0f, 1.0f} |
Definition at line 30 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(), BKE_idtype_idfilter_to_index(), TexDef(), TexDef(), TexDef(), TexDef(), TexDef(), TexDef(), and TexDef().
| #define I 2 /* count */ |
Definition at line 29 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(), copy_particle_systems_to_object(), dfdx_spring(), 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(), Freestyle::findOccludee(), blender::detail::get_default_hash_array(), 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(), SIM_hair_volume_vertex_grid_forces(), SIM_mass_spring_add_constraint_ndof1(), SIM_mass_spring_add_constraint_ndof2(), SIM_mass_spring_force_drag(), SIM_mass_spring_force_spring_bending_hair(), SIM_mass_spring_solver_create(), spring_grad_dir(), 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 88 of file node_texture_proc.cc.
| #define ProcNoInputs | ( | name | ) |
Definition at line 82 of file node_texture_proc.cc.
Definition at line 251 of file node_texture_proc.cc.
Definition at line 56 of file node_texture_proc.cc.
|
static |
Definition at line 165 of file node_texture_proc.cc.
References I, in, Tex::noisesize, and tex_input_value().
|
static |
Definition at line 71 of file node_texture_proc.cc.
References LISTBASE_FOREACH, num, and bNode::outputs.
|
static |
Definition at line 177 of file node_texture_proc.cc.
References Tex::dist_amount, I, in, Tex::noisesize, and tex_input_value().
|
static |
Definition at line 35 of file node_texture_proc.cc.
References TexParams::co, copy_v4_v4(), MA_RAMP_BLEND, TexParams::mtex, multitex_nodes(), ramp_blend(), result, TEX_RGB, TexResult::tin, and TexResult::trgba.
Referenced by texfn().
Definition at line 237 of file node_texture_proc.cc.
References BKE_texture_default(), MEM_callocN(), bNode::storage, Tex::stype, TEX_BANDNOISE, TEX_NODE_PROC, TEX_WOOD, Tex::type, and bNode::type_legacy.
|
static |
Definition at line 141 of file node_texture_proc.cc.
References I, in, tex_input_value(), and Tex::turbul.
|
static |
Definition at line 153 of file node_texture_proc.cc.
References I, in, Tex::noisesize, tex_input_value(), and Tex::turbul.
|
static |
Definition at line 207 of file node_texture_proc.cc.
References I, in, Tex::mg_H, Tex::mg_lacunarity, Tex::mg_octaves, Tex::noisesize, Tex::ns_outscale, and tex_input_value().
| ProcDef | ( | distnoise | ) |
| ProcDef | ( | musgrave | ) |
| ProcDef | ( | voronoi | ) |
|
static |
Definition at line 228 of file node_texture_proc.cc.
References I, in, Tex::noisesize, tex_input_value(), and Tex::turbul.
| TexDef | ( | TEX_CLOUDS | , |
| "TextureNodeTexClouds" | , | ||
| CV | , | ||
| clouds | , | ||
| "Clouds" | , | ||
| "TEX_CLOUDS" | ) |
References clouds(), CV, and TEX_CLOUDS.
| TexDef | ( | TEX_DISTNOISE | , |
| "TextureNodeTexDistNoise" | , | ||
| CV | , | ||
| distnoise | , | ||
| "Distorted Noise" | , | ||
| "TEX_DISTNOISE" | ) |
References CV, and TEX_DISTNOISE.
| TexDef | ( | TEX_MARBLE | , |
| "TextureNodeTexMarble" | , | ||
| CV | , | ||
| marble | , | ||
| "Marble" | , | ||
| "TEX_MARBLE" | ) |
References CV, marble(), and TEX_MARBLE.
| TexDef | ( | TEX_MUSGRAVE | , |
| "TextureNodeTexMusgrave" | , | ||
| CV | , | ||
| musgrave | , | ||
| "Musgrave" | , | ||
| "TEX_MUSGRAVE" | ) |
References CV, and TEX_MUSGRAVE.
| TexDef | ( | TEX_STUCCI | , |
| "TextureNodeTexStucci" | , | ||
| CV | , | ||
| stucci | , | ||
| "Stucci" | , | ||
| "TEX_STUCCI" | ) |
References CV, stucci(), and TEX_STUCCI.
| TexDef | ( | TEX_VORONOI | , |
| "TextureNodeTexVoronoi" | , | ||
| CV | , | ||
| voronoi | , | ||
| "Voronoi" | , | ||
| "TEX_VORONOI" | ) |
References CV, and TEX_VORONOI.
|
static |
Definition at line 58 of file node_texture_proc.cc.
References do_proc(), in, result, bNode::storage, and tex_input_rgba().
Referenced by tex_output().
|
static |
Definition at line 119 of file node_texture_proc.cc.
References I, in, Tex::noisesize, Tex::ns_outscale, tex_input_value(), Tex::vn_w1, Tex::vn_w2, Tex::vn_w3, and Tex::vn_w4.
|
static |
Definition at line 190 of file node_texture_proc.cc.
References I, in, Tex::noisesize, tex_input_value(), and Tex::turbul.
|
static |
Definition at line 132 of file node_texture_proc.cc.
|
static |
Definition at line 161 of file node_texture_proc.cc.
|
static |
Definition at line 172 of file node_texture_proc.cc.
|
static |
Definition at line 137 of file node_texture_proc.cc.
|
static |
Definition at line 148 of file node_texture_proc.cc.
|
static |
Definition at line 198 of file node_texture_proc.cc.
|
static |
Definition at line 218 of file node_texture_proc.cc.
|
static |
Definition at line 23 of file node_texture_proc.cc.
|
static |
Definition at line 25 of file node_texture_proc.cc.
|
static |
Definition at line 223 of file node_texture_proc.cc.
|
static |
Definition at line 108 of file node_texture_proc.cc.
|
static |
Definition at line 185 of file node_texture_proc.cc.