Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_fluid_types.h
| Show First 20 Lines • Show All 474 Lines • ▼ Show 20 Lines | |||||
| /* High resolution sampling types. */ | /* High resolution sampling types. */ | ||||
| enum { | enum { | ||||
| SM_HRES_NEAREST = 0, | SM_HRES_NEAREST = 0, | ||||
| SM_HRES_LINEAR = 1, | SM_HRES_LINEAR = 1, | ||||
| SM_HRES_FULLSAMPLE = 2, | SM_HRES_FULLSAMPLE = 2, | ||||
| }; | }; | ||||
| typedef struct FluidDomainVertexVelocity { | |||||
| float vel[3]; | |||||
| } FluidDomainVertexVelocity; | |||||
| typedef struct FluidDomainSettings { | typedef struct FluidDomainSettings { | ||||
| /* -- Runtime-only fields (from here on). -- */ | /* -- Runtime-only fields (from here on). -- */ | ||||
| struct FluidModifierData *fmd; /* For fast RNA access. */ | struct FluidModifierData *fmd; /* For fast RNA access. */ | ||||
| struct MANTA *fluid; | struct MANTA *fluid; | ||||
| struct MANTA *fluid_old; /* Adaptive domain needs access to old fluid state. */ | struct MANTA *fluid_old; /* Adaptive domain needs access to old fluid state. */ | ||||
| void *fluid_mutex; | void *fluid_mutex; | ||||
| Show All 9 Lines | typedef struct FluidDomainSettings { | ||||
| struct GPUTexture *tex_coba; | struct GPUTexture *tex_coba; | ||||
| struct GPUTexture *tex_field; | struct GPUTexture *tex_field; | ||||
| struct GPUTexture *tex_velocity_x; | struct GPUTexture *tex_velocity_x; | ||||
| struct GPUTexture *tex_velocity_y; | struct GPUTexture *tex_velocity_y; | ||||
| struct GPUTexture *tex_velocity_z; | struct GPUTexture *tex_velocity_z; | ||||
| struct GPUTexture *tex_flags; | struct GPUTexture *tex_flags; | ||||
| struct GPUTexture *tex_range_field; | struct GPUTexture *tex_range_field; | ||||
| struct Object *guide_parent; | struct Object *guide_parent; | ||||
| /** Vertex velocities of simulated fluid mesh. */ | |||||
| struct FluidDomainVertexVelocity *mesh_velocities; | |||||
| struct EffectorWeights *effector_weights; | struct EffectorWeights *effector_weights; | ||||
| /* Domain object data. */ | /* Domain object data. */ | ||||
| float p0[3]; /* Start point of BB in local space | float p0[3]; /* Start point of BB in local space | ||||
| * (includes sub-cell shift for adaptive domain). */ | * (includes sub-cell shift for adaptive domain). */ | ||||
| float p1[3]; /* End point of BB in local space. */ | float p1[3]; /* End point of BB in local space. */ | ||||
| float dp0[3]; /* Difference from object center to grid start point. */ | float dp0[3]; /* Difference from object center to grid start point. */ | ||||
| float cell_size[3]; /* Size of simulation cell in local space. */ | float cell_size[3]; /* Size of simulation cell in local space. */ | ||||
| ▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | typedef struct FluidDomainSettings { | ||||
| /* Mesh options. */ | /* Mesh options. */ | ||||
| float mesh_concave_upper; | float mesh_concave_upper; | ||||
| float mesh_concave_lower; | float mesh_concave_lower; | ||||
| float mesh_particle_radius; | float mesh_particle_radius; | ||||
| int mesh_smoothen_pos; | int mesh_smoothen_pos; | ||||
| int mesh_smoothen_neg; | int mesh_smoothen_neg; | ||||
| int mesh_scale; | int mesh_scale; | ||||
| int totvert; | |||||
| short mesh_generator; | short mesh_generator; | ||||
| char _pad6[6]; /* Unused. */ | char _pad6[2]; /* Unused. */ | ||||
| /* Secondary particle options. */ | /* Secondary particle options. */ | ||||
| int particle_type; | int particle_type; | ||||
| int particle_scale; | int particle_scale; | ||||
| float sndparticle_tau_min_wc; | float sndparticle_tau_min_wc; | ||||
| float sndparticle_tau_max_wc; | float sndparticle_tau_max_wc; | ||||
| float sndparticle_tau_min_ta; | float sndparticle_tau_min_ta; | ||||
| float sndparticle_tau_max_ta; | float sndparticle_tau_max_ta; | ||||
| ▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines | |||||