Blender V4.3
DNA_linestyle_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_FreestyleLineStyle \
18 { \
19 .panel = LS_PANEL_STROKES, \
20 .r = 0, \
21 .g = 0, \
22 .b = 0, \
23 .alpha = 1.0f, \
24 .thickness = 3.0f, \
25 .thickness_position = LS_THICKNESS_CENTER, \
26 .thickness_ratio = 0.5f, \
27 .flag = LS_SAME_OBJECT | LS_NO_SORTING | LS_TEXTURE, \
28 .chaining = LS_CHAINING_PLAIN, \
29 .rounds = 3, \
30 .min_angle = DEG2RADF(0.0f), \
31 .max_angle = DEG2RADF(0.0f), \
32 .min_length = 0.0f, \
33 .max_length = 10000.0f, \
34 .split_length = 100, \
35 .chain_count = 10, \
36 .sort_key = LS_SORT_KEY_DISTANCE_FROM_CAMERA, \
37 .integration_type = LS_INTEGRATION_MEAN, \
38 .texstep = 1.0f, \
39 .pr_texture = TEX_PR_TEXTURE, \
40 .caps = LS_CAPS_BUTT, \
41 }
42
45/* clang-format on */