Blender V4.3
DNA_particle_defaults.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11/* clang-format off */
12
13/* -------------------------------------------------------------------- */
17#define _DNA_DEFAULT_ParticleSettings \
18 { \
19 .type = PART_EMITTER, \
20 .distr = PART_DISTR_JIT, \
21 .draw_as = PART_DRAW_REND, \
22 .ren_as = PART_DRAW_HALO, \
23 .bb_uv_split = 1, \
24 .flag = PART_EDISTR | PART_TRAND | PART_HIDE_ADVANCED_HAIR, \
25 \
26 .sta = 1.0f, \
27 .end = 200.0f, \
28 .lifetime = 50.0f, \
29 .jitfac = 1.0f, \
30 .totpart = 1000, \
31 .grid_res = 10, \
32 .timetweak = 1.0f, \
33 .courant_target = 0.2f, \
34 \
35 .integrator = PART_INT_MIDPOINT, \
36 .phystype = PART_PHYS_NEWTON, \
37 .hair_step = 5, \
38 .keys_step = 5, \
39 .draw_step = 2, \
40 .ren_step = 3, \
41 .adapt_angle = 5, \
42 .adapt_pix = 3, \
43 .kink_axis = 2, \
44 .kink_amp_clump = 1.0f, \
45 .kink_extra_steps = 4, \
46 .clump_noise_size = 1.0f, \
47 .reactevent = PART_EVENT_DEATH, \
48 .disp = 100, \
49 .from = PART_FROM_FACE, \
50 \
51 .normfac = 1.0f, \
52 \
53 .mass = 1.0f, \
54 .size = 0.05f, \
55 .childsize = 1.0f, \
56 \
57 .rotmode = PART_ROT_VEL, \
58 .avemode = PART_AVE_VELOCITY, \
59 \
60 .child_percent = 10, \
61 .child_render_percent = 100, \
62 .childrad = 0.2f, \
63 .childflat = 0.0f, \
64 .clumppow = 0.0f, \
65 .kink_amp = 0.2f, \
66 .kink_freq = 2.0f, \
67 \
68 .rough1_size = 1.0f, \
69 .rough2_size = 1.0f, \
70 .rough_end_shape = 1.0f, \
71 \
72 .clength = 1.0f, \
73 .clength_thres = 0.0f, \
74 \
75 .draw = 0, \
76 .draw_line = {0.5f,}, \
77 .path_start = 0.0f, \
78 .path_end = 1.0f, \
79 \
80 .bb_size = {1.0f, 1.0f}, \
81 \
82 .keyed_loops = 1, \
83 \
84 .color_vec_max = 1.0f, \
85 .draw_col = PART_DRAW_COL_MAT, \
86 \
87 .omat = 1, \
88 .use_modifier_stack = false, \
89 .draw_size = 0.1f, \
90 \
91 .shape_flag = PART_SHAPE_CLOSE_TIP, \
92 .shape = 0.0f, \
93 .rad_root = 1.0f, \
94 .rad_tip = 0.0f, \
95 .rad_scale = 0.01f, \
96 }
97
100/* clang-format on */