This PR reuses the scene specific reflection probe resolution for all reflection light probes in the scene. The target is to have a automatic detection for the resolution. But as long as we don't have a mechanism for detection it is better to not introduce a new UI element that will be removed within the foreseen future. This setting is currently used by EEVEE and EEVEE-Next. EEVEE supports resolutions upto 4096px. This will be clamped to 2048 when using EEVEE-Next. The motivation for this is that EEVEE-Next will soon replace EEVEE and 4096 can then be removed from the choices that the user can made. Adding as separate option could need synchronization, and that option would also be temporary as it will be removed by the resolution detection mechanism. Pull Request: https://projects.blender.org/blender/blender/pulls/113491
50 lines
1.2 KiB
C
50 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, \
|
|
}
|
|
|
|
/** \} */
|
|
|
|
/* clang-format on */
|