|
Blender V4.5
|
Go to the source code of this file.
Macros | |
| #define | MAXCOLORBAND 32 |
| #define MAXCOLORBAND 32 |
ColorBand.data length.
Definition at line 24 of file BKE_texture.h.
Definition at line 374 of file texture.cc.
References BKE_id_new().
Referenced by new_texture_exec().
| struct ColorMapping * BKE_texture_colormapping_add | ( | void | ) |
Definition at line 332 of file texture.cc.
References BKE_texture_colormapping_default(), and MEM_callocN().
| void BKE_texture_colormapping_default | ( | struct ColorMapping * | colormap | ) |
Definition at line 341 of file texture.cc.
References BKE_colorband_init(), ColorMapping::blend_color, ColorMapping::blend_factor, ColorMapping::blend_type, ColorMapping::bright, ColorMapping::coba, ColorMapping::contrast, MA_RAMP_BLEND, and ColorMapping::saturation.
Referenced by BKE_texture_colormapping_add(), blo_do_versions_400(), blender::nodes::node_shader_tex_brick_cc::node_shader_init_tex_brick(), blender::nodes::node_shader_tex_checker_cc::node_shader_init_tex_checker(), blender::nodes::node_shader_tex_environment_cc::node_shader_init_tex_environment(), blender::nodes::node_shader_tex_gabor_cc::node_shader_init_tex_gabor(), blender::nodes::node_shader_tex_gradient_cc::node_shader_init_tex_gradient(), blender::nodes::node_shader_tex_image_cc::node_shader_init_tex_image(), blender::nodes::node_shader_tex_magic_cc::node_shader_init_tex_magic(), blender::nodes::node_shader_tex_noise_cc::node_shader_init_tex_noise(), blender::nodes::node_shader_tex_sky_cc::node_shader_init_tex_sky(), blender::nodes::node_shader_tex_voronoi_cc::node_shader_init_tex_voronoi(), and blender::nodes::node_shader_tex_wave_cc::node_shader_init_tex_wave().
| void BKE_texture_default | ( | struct Tex * | tex | ) |
Definition at line 362 of file texture.cc.
References Tex::id, and texture_init_data().
Referenced by init().
| bool BKE_texture_dependsOnTime | ( | const struct Tex * | texture | ) |
References texture().
Referenced by depends_on_time(), depends_on_time(), depends_on_time(), depends_on_time(), depends_on_time(), and depends_on_time().
Make sure all images used by texture are loaded into pool.
Definition at line 735 of file texture.cc.
References BKE_image_pool_acquire_ibuf(), TEX_IMAGE, texture(), and texture_nodes_fetch_images_for_pool().
Referenced by blender::compositor::CachedTexture::CachedTexture(), displaceModifier_do(), and shader_preview_texture().
| void BKE_texture_get_value | ( | struct Tex * | texture, |
| const float * | tex_co, | ||
| struct TexResult * | texres, | ||
| bool | use_color_management ) |
Definition at line 712 of file texture.cc.
References BKE_texture_get_value_ex(), and texture().
Referenced by warpModifier_do(), waveModifier_do(), and weightvg_do_mask().
| void BKE_texture_get_value_ex | ( | struct Tex * | texture, |
| const float * | tex_co, | ||
| struct TexResult * | texres, | ||
| struct ImagePool * | pool, | ||
| bool | use_color_management ) |
Definition at line 690 of file texture.cc.
References copy_v3_fl(), multitex_ext_safe(), TEX_RGB, texture(), TexResult::tin, and TexResult::trgba.
Referenced by BKE_texture_get_value(), displaceModifier_do_task(), and shader_preview_texture().
| bool BKE_texture_is_image_user | ( | const struct Tex * | tex | ) |
References texture().
| struct TexMapping * BKE_texture_mapping_add | ( | int | type | ) |
Definition at line 229 of file texture.cc.
References BKE_texture_mapping_default(), and MEM_callocN().
Referenced by blender::nodes::node_composite_map_value_cc::node_composit_init_map_value().
| void BKE_texture_mapping_default | ( | struct TexMapping * | texmap, |
| int | type ) |
Definition at line 238 of file texture.cc.
References TexMapping::mapping, TexMapping::mat, TexMapping::max, MTEX_FLAT, PROJ_X, PROJ_Y, PROJ_Z, TexMapping::projx, TexMapping::projy, TexMapping::projz, TexMapping::size, TexMapping::type, and unit_m4().
Referenced by BKE_texture_mapping_add(), blo_do_versions_400(), blender::nodes::node_shader_tex_brick_cc::node_shader_init_tex_brick(), blender::nodes::node_shader_tex_checker_cc::node_shader_init_tex_checker(), blender::nodes::node_shader_tex_environment_cc::node_shader_init_tex_environment(), blender::nodes::node_shader_tex_gabor_cc::node_shader_init_tex_gabor(), blender::nodes::node_shader_tex_gradient_cc::node_shader_init_tex_gradient(), blender::nodes::node_shader_tex_image_cc::node_shader_init_tex_image(), blender::nodes::node_shader_tex_magic_cc::node_shader_init_tex_magic(), blender::nodes::node_shader_tex_noise_cc::node_shader_init_tex_noise(), blender::nodes::node_shader_tex_sky_cc::node_shader_init_tex_sky(), blender::nodes::node_shader_tex_voronoi_cc::node_shader_init_tex_voronoi(), and blender::nodes::node_shader_tex_wave_cc::node_shader_init_tex_wave().
| void BKE_texture_mapping_init | ( | struct TexMapping * | texmap | ) |
Definition at line 253 of file texture.cc.
References copy_v3_v3(), ELEM, eul_to_mat4(), fabsf, TexMapping::flag, invert_m4(), is_one_v3(), is_zero_v3(), TexMapping::loc, TexMapping::mat, mul_m4_m4m4(), mul_m4_series, PROJ_N, PROJ_X, PROJ_Y, PROJ_Z, TexMapping::projx, TexMapping::projy, TexMapping::projz, TexMapping::rot, signf(), size(), TexMapping::size, size_to_mat4(), TEXMAP_TYPE_NORMAL, TEXMAP_TYPE_POINT, TEXMAP_TYPE_TEXTURE, TEXMAP_TYPE_VECTOR, TEXMAP_UNIT_MATRIX, transpose_m4(), TexMapping::type, unit_m4(), and zero_m4().
| struct MTex * BKE_texture_mtex_add | ( | void | ) |
Definition at line 392 of file texture.cc.
References BKE_texture_mtex_default(), and MEM_callocN().
Referenced by BKE_texture_mtex_add_id(), set_current_linestyle_texture(), and set_current_particle_texture().
Slot -1 for first free ID.
Definition at line 403 of file texture.cc.
References BKE_texture_mtex_add(), give_active_mtex(), i, id_us_min(), MAX_MTEX, and MEM_freeN().
| void BKE_texture_mtex_default | ( | struct MTex * | mtex | ) |
Definition at line 385 of file texture.cc.
References DNA_struct_default_get.
Referenced by BKE_texture_mtex_add(), blo_do_versions_250(), and blo_do_versions_260().
| void BKE_texture_mtex_foreach_id | ( | struct LibraryForeachIDData * | data, |
| struct MTex * | mtex ) |
Utility for all IDs using those texture slots.
Definition at line 221 of file texture.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, data, IDWALK_CB_NOP, IDWALK_CB_USER, MTex::object, and MTex::tex.
Referenced by brush_foreach_id(), linestyle_foreach_id(), and particle_settings_foreach_id().
| struct PointDensity * BKE_texture_pointdensity_add | ( | void | ) |
Definition at line 621 of file texture.cc.
References BKE_texture_pointdensity_init_data(), and MEM_callocN().
| struct PointDensity * BKE_texture_pointdensity_copy | ( | const struct PointDensity * | pd, |
| int | flag ) |
References flag.
| void BKE_texture_pointdensity_free | ( | struct PointDensity * | pd | ) |
Definition at line 654 of file texture.cc.
References BKE_texture_pointdensity_free_data(), and MEM_freeN().
| void BKE_texture_pointdensity_free_data | ( | struct PointDensity * | pd | ) |
Definition at line 642 of file texture.cc.
References BKE_curvemapping_free(), BLI_bvhtree_free(), PointDensity::coba, PointDensity::falloff_curve, MEM_SAFE_FREE, PointDensity::point_data, and PointDensity::point_tree.
Referenced by BKE_texture_pointdensity_free(), and blender::nodes::node_shader_tex_pointdensity_cc::node_shader_free_tex_pointdensity().
| void BKE_texture_pointdensity_init_data | ( | struct PointDensity * | pd | ) |
Definition at line 591 of file texture.cc.
References BKE_colorband_add(), BKE_curvemap_reset(), BKE_curvemapping_add(), BKE_curvemapping_changed(), CurveMapping::clipr, CurveMapping::cm, PointDensity::coba, CUMA_EXTEND_EXTRAPOLATE, CURVE_PRESET_LINE, CURVEMAP_SLOPE_POSITIVE, PointDensity::falloff_curve, PointDensity::falloff_softness, PointDensity::falloff_type, CurveMapping::flag, PointDensity::flag, PointDensity::noise_depth, PointDensity::noise_fac, PointDensity::noise_influence, PointDensity::noise_size, PointDensity::object, PointDensity::point_data, PointDensity::point_tree, CurveMapping::preset, PointDensity::psys, PointDensity::psys_cache_space, PointDensity::radius, PointDensity::source, PointDensity::speed_scale, TEX_PD_FALLOFF_STD, TEX_PD_NOISE_STATIC, TEX_PD_PSYS, TEX_PD_WORLDSPACE, and PointDensity::totpoints.
Referenced by BKE_texture_pointdensity_add().
| void BKE_texture_type_set | ( | struct Tex * | tex, |
| int | type ) |
Definition at line 367 of file texture.cc.
References Tex::type.
Definition at line 484 of file texture.cc.
References GS, ID_LS, ID_PA, and ID::name.
Referenced by BKE_texture_mtex_add_id(), and texture_slot_move_exec().
Definition at line 531 of file texture.cc.
References Brush::mtex, and MTex::tex.
Referenced by texture_get_from_context().
| struct Tex * give_current_linestyle_texture | ( | struct FreestyleLineStyle * | linestyle | ) |
Definition at line 447 of file texture.cc.
References FreestyleLineStyle::mtex, MTex::tex, and FreestyleLineStyle::texact.
Referenced by texture_get_from_context().
| struct Tex * give_current_particle_texture | ( | struct ParticleSettings * | part | ) |
Definition at line 549 of file texture.cc.
References ParticleSettings::mtex, MTex::tex, and ParticleSettings::texact.
| void set_active_mtex | ( | struct ID * | id, |
| short | act ) |
Definition at line 510 of file texture.cc.
References GS, ID_LS, ID_PA, MAX_MTEX, and ID::name.
Referenced by texture_slot_move_exec().
Definition at line 536 of file texture.cc.
References BKE_brush_tag_unsaved_changes(), Tex::id, id_us_min(), id_us_plus(), Brush::mtex, and MTex::tex.
| void set_current_linestyle_texture | ( | struct FreestyleLineStyle * | linestyle, |
| struct Tex * | tex ) |
Definition at line 462 of file texture.cc.
References BKE_texture_mtex_add(), Tex::id, id_us_min(), id_us_plus(), MEM_SAFE_FREE, FreestyleLineStyle::mtex, MTex::tex, FreestyleLineStyle::texact, MTex::texco, and TEXCO_STROKE.
| void set_current_particle_texture | ( | struct ParticleSettings * | part, |
| struct Tex * | tex ) |
Definition at line 566 of file texture.cc.
References BKE_texture_mtex_add(), MTex::blendtype, Tex::id, id_us_min(), id_us_plus(), MEM_SAFE_FREE, ParticleSettings::mtex, MTEX_MUL, MTex::tex, ParticleSettings::texact, MTex::texco, and TEXCO_ORCO.