Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DNA_particle_defaults.h « makesdna « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 108252a5e6c3a2542460b2ec96dc65f659641b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/* SPDX-License-Identifier: GPL-2.0-or-later */

/** \file
 * \ingroup DNA
 */

#pragma once

/* Struct members on own line. */
/* clang-format off */

/* -------------------------------------------------------------------- */
/** \name ParticleSettings Struct
 * \{ */

#define _DNA_DEFAULT_ParticleSettings \
  { \
    .type = PART_EMITTER, \
    .distr = PART_DISTR_JIT, \
    .draw_as = PART_DRAW_REND, \
    .ren_as = PART_DRAW_HALO, \
    .bb_uv_split = 1, \
    .flag = PART_EDISTR | PART_TRAND | PART_HIDE_ADVANCED_HAIR, \
 \
    .sta = 1.0f, \
    .end = 200.0f, \
    .lifetime = 50.0f, \
    .jitfac = 1.0f, \
    .totpart = 1000, \
    .grid_res = 10, \
    .timetweak = 1.0f, \
    .courant_target = 0.2f, \
 \
    .integrator = PART_INT_MIDPOINT, \
    .phystype = PART_PHYS_NEWTON, \
    .hair_step = 5, \
    .keys_step = 5, \
    .draw_step = 2, \
    .ren_step = 3, \
    .adapt_angle = 5, \
    .adapt_pix = 3, \
    .kink_axis = 2, \
    .kink_amp_clump = 1.0f, \
    .kink_extra_steps = 4, \
    .clump_noise_size = 1.0f, \
    .reactevent = PART_EVENT_DEATH, \
    .disp = 100, \
    .from = PART_FROM_FACE, \
 \
    .normfac = 1.0f, \
 \
    .mass = 1.0f, \
    .size = 0.05f, \
    .childsize = 1.0f, \
 \
    .rotmode = PART_ROT_VEL, \
    .avemode = PART_AVE_VELOCITY, \
 \
    .child_percent = 10, \
    .child_render_percent = 100, \
    .childrad = 0.2f, \
    .childflat = 0.0f, \
    .clumppow = 0.0f, \
    .kink_amp = 0.2f, \
    .kink_freq = 2.0f, \
 \
    .rough1_size = 1.0f, \
    .rough2_size = 1.0f, \
    .rough_end_shape = 1.0f, \
 \
    .clength = 1.0f, \
    .clength_thres = 0.0f, \
 \
    .draw = 0, \
    .draw_line = {0.5f,}, \
    .path_start = 0.0f, \
    .path_end = 1.0f, \
 \
    .bb_size = {1.0f, 1.0f}, \
 \
    .keyed_loops = 1, \
 \
    .color_vec_max = 1.0f, \
    .draw_col = PART_DRAW_COL_MAT, \
 \
    .omat = 1, \
    .use_modifier_stack = false, \
    .draw_size = 0.1f, \
 \
    .shape_flag = PART_SHAPE_CLOSE_TIP, \
    .shape = 0.0f, \
    .rad_root = 1.0f, \
    .rad_tip = 0.0f, \
    .rad_scale = 0.01f, \
  }

/** \} */

/* clang-format on */