Files
test2/source/blender/makesdna/DNA_lightprobe_defaults.h
Clément Foucault 4f3b224141 EEVEE-Next: Irradiance Volume: Add clamp options
This allows to clamp the lighting components
during the baking phase.

Also add back intensity option.

Pull Request: https://projects.blender.org/blender/blender/pulls/110858
2023-09-04 23:27:30 +02:00

51 lines
1.2 KiB
C

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup DNA
*/
#pragma once
/* Struct members on own line. */
/* clang-format off */
/* -------------------------------------------------------------------- */
/** \name LightProbe Struct
* \{ */
#define _DNA_DEFAULT_LightProbe \
{ \
.grid_resolution_x = 4, \
.grid_resolution_y = 4, \
.grid_resolution_z = 4, \
.grid_bake_samples = 2048, \
.grid_surface_bias = 0.05, \
.grid_escape_bias = 0.1, \
.grid_normal_bias = 0.3f, \
.grid_view_bias = 0.0f, \
.grid_facing_bias = 0.5f, \
.grid_validity_threshold = 0.40f, \
.grid_dilation_threshold = 0.5f, \
.grid_dilation_radius = 1.0f, \
.grid_clamp_direct = 0.0f, \
.grid_clamp_indirect = 10.0f, \
.surfel_density = 1.0f, \
.distinf = 2.5f, \
.distpar = 2.5f, \
.falloff = 0.2f, \
.clipsta = 0.8f, \
.clipend = 40.0f, \
.vis_bias = 1.0f, \
.vis_blur = 0.2f, \
.intensity = 1.0f, \
.flag = LIGHTPROBE_FLAG_SHOW_INFLUENCE, \
.grid_flag = LIGHTPROBE_GRID_CAPTURE_INDIRECT | LIGHTPROBE_GRID_CAPTURE_EMISSION, \
.resolution = LIGHT_PROBE_RESOLUTION_1024, \
}
/** \} */
/* clang-format on */