Blender
V3.3
|
#include "BLI_utildefines.h"
#include "BLI_math.h"
#include "BLI_task.h"
#include "BLT_translation.h"
#include "DNA_defaults.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "BKE_context.h"
#include "BKE_customdata.h"
#include "BKE_deform.h"
#include "BKE_editmesh.h"
#include "BKE_image.h"
#include "BKE_lib_id.h"
#include "BKE_lib_query.h"
#include "BKE_mesh.h"
#include "BKE_mesh_wrapper.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BKE_screen.h"
#include "BKE_texture.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "MEM_guardedalloc.h"
#include "MOD_ui_common.h"
#include "MOD_util.h"
#include "RE_texture.h"
Go to the source code of this file.
Classes | |
struct | DisplaceUserdata |
Typedefs | |
typedef struct DisplaceUserdata | DisplaceUserdata |
Variables | |
ModifierTypeInfo | modifierType_Displace |
typedef struct DisplaceUserdata DisplaceUserdata |
|
static |
Definition at line 369 of file MOD_displace.c.
References BKE_id_free(), displaceModifier_do(), ELEM, mesh, MOD_deform_mesh_eval_get(), NULL, and ModifierEvalContext::object.
|
static |
Definition at line 385 of file MOD_displace.c.
References BKE_id_free(), BKE_mesh_wrapper_ensure_mdata(), displaceModifier_do(), ELEM, mesh, MOD_deform_mesh_eval_get(), NULL, and ModifierEvalContext::object.
|
static |
Definition at line 94 of file MOD_displace.c.
References DisplaceModifierData::direction, ELEM, MOD_DISP_DIR_CLNOR, and MOD_DISP_DIR_NOR.
|
static |
Definition at line 83 of file MOD_displace.c.
References BKE_texture_dependsOnTime(), and DisplaceModifierData::texture.
|
static |
Definition at line 265 of file MOD_displace.c.
References BKE_image_pool_free(), BKE_image_pool_new(), BKE_mesh_calc_normals_split(), BKE_mesh_normals_loop_to_vertex(), BKE_mesh_vertex_normals_ensure(), BKE_texture_fetch_images_for_pool(), BLI_parallel_range_settings_defaults(), BLI_task_parallel_range(), CD_CUSTOMLOOPNORMAL, CD_NORMAL, copy_m4_m4(), CustomData_get_layer(), CustomData_has_layer(), data, DisplaceModifierData::defgrp_name, DEG_get_evaluated_scene(), ModifierEvalContext::depsgraph, DisplaceModifierData::direction, displaceModifier_do_task(), ELEM, float(), Mesh::ldata, MEM_calloc_arrayN, MEM_freeN, MEM_malloc_arrayN, mesh, Mesh::mloop, MOD_DISP_DIR_CLNOR, MOD_DISP_DIR_NOR, MOD_DISP_DIR_RGB_XYZ, MOD_DISP_DIR_X, MOD_DISP_DIR_Y, MOD_DISP_DIR_Z, MOD_DISP_SPACE_GLOBAL, MOD_get_texture_coords(), MOD_get_vgroup(), MOD_init_texture(), Mesh::mvert, NULL, ModifierEvalContext::object, Object::obmat, DisplaceModifierData::space, DisplaceModifierData::strength, DisplaceModifierData::texture, Mesh::totloop, and TaskParallelSettings::use_threading.
Referenced by deformVerts(), and deformVertsEM().
|
static |
Definition at line 167 of file MOD_displace.c.
References add_v3_v3(), BKE_defvert_find_weight(), BKE_texture_get_value_ex(), CLAMP, data, DisplaceModifierData::flag, float(), madd_v3_v3fl(), DisplaceModifierData::midlevel, MOD_DISP_DIR_CLNOR, MOD_DISP_DIR_NOR, MOD_DISP_DIR_RGB_XYZ, MOD_DISP_DIR_X, MOD_DISP_DIR_Y, MOD_DISP_DIR_Z, MOD_DISP_INVERT_VGROUP, mul_transposed_mat3_m4_v3(), mul_v3_fl(), DisplaceModifierData::strength, TexResult::tin, and TexResult::trgba.
Referenced by displaceModifier_do().
|
static |
Definition at line 100 of file MOD_displace.c.
References IDWALK_CB_NOP, IDWALK_CB_USER, DisplaceModifierData::map_object, and DisplaceModifierData::texture.
|
static |
Definition at line 108 of file MOD_displace.c.
|
static |
Definition at line 53 of file MOD_displace.c.
References BLI_assert, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
|
static |
Definition at line 113 of file MOD_displace.c.
References DisplaceModifierData::direction, MOD_DISP_DIR_RGB_XYZ, DisplaceModifierData::strength, and DisplaceModifierData::texture.
Definition at line 407 of file MOD_displace.c.
References C, col, ELEM, IFACE_, Panel::layout, MOD_DISP_DIR_RGB_XYZ, MOD_DISP_DIR_X, MOD_DISP_DIR_Y, MOD_DISP_DIR_Z, MOD_DISP_MAP_OBJECT, MOD_DISP_MAP_UV, modifier_panel_end(), modifier_panel_get_property_pointers(), modifier_vgroup_ui(), NULL, OB_ARMATURE, OB_MESH, ptr, RNA_enum_get(), RNA_pointer_get(), RNA_pointer_is_null(), uiItemPointerR(), uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutSetActive(), uiLayoutSetPropSep(), and uiTemplateID().
Referenced by panelRegister().
|
static |
Definition at line 470 of file MOD_displace.c.
References eModifierType_Displace, modifier_panel_register(), and panel_draw().
|
static |
Definition at line 62 of file MOD_displace.c.
References CD_MASK_CUSTOMLOOPNORMAL, CD_MASK_MDEFORMVERT, CD_MASK_MTFACE, DisplaceModifierData::defgrp_name, DisplaceModifierData::direction, CustomData_MeshMasks::fmask, CustomData_MeshMasks::lmask, MOD_DISP_DIR_CLNOR, MOD_DISP_MAP_UV, DisplaceModifierData::texmapping, and CustomData_MeshMasks::vmask.
|
static |
Definition at line 121 of file MOD_displace.c.
References DEG_add_generic_id_relation(), DEG_add_modifier_to_transform_relation(), DisplaceModifierData::direction, ELEM, Tex::id, DisplaceModifierData::map_bone, DisplaceModifierData::map_object, MOD_depsgraph_update_object_bone_relation(), MOD_DISP_DIR_RGB_XYZ, MOD_DISP_DIR_X, MOD_DISP_DIR_Y, MOD_DISP_DIR_Z, MOD_DISP_MAP_GLOBAL, MOD_DISP_MAP_OBJECT, MOD_DISP_SPACE_GLOBAL, ModifierUpdateDepsgraphContext::node, NULL, DisplaceModifierData::space, DisplaceModifierData::texmapping, and DisplaceModifierData::texture.
ModifierTypeInfo modifierType_Displace |
Definition at line 475 of file MOD_displace.c.