WIP: eevee-next-world-irradiance #108304
|
@ -596,6 +596,7 @@ class RENDER_PT_eevee_next_indirect_lighting(RenderButtonsPanel, Panel):
|
|||
col.label(text=cache_info)
|
||||
|
||||
col.prop(props, "gi_auto_bake")
|
||||
col.prop(props, "gi_irradiance_samples")
|
||||
|
||||
|
||||
class RENDER_PT_eevee_indirect_lighting_display(RenderButtonsPanel, Panel):
|
||||
|
|
|
@ -163,6 +163,7 @@
|
|||
#define _DNA_DEFAULT_SceneEEVEE \
|
||||
{ \
|
||||
.gi_diffuse_bounces = 3, \
|
||||
.gi_irradiance_samples = 128, \
|
||||
.gi_cubemap_resolution = 512, \
|
||||
.gi_visibility_resolution = 32, \
|
||||
.gi_cubemap_draw_size = 0.3f, \
|
||||
|
|
|
@ -1776,6 +1776,7 @@ typedef struct SceneDisplay {
|
|||
typedef struct SceneEEVEE {
|
||||
int flag;
|
||||
int gi_diffuse_bounces;
|
||||
int gi_irradiance_samples;
|
||||
int gi_cubemap_resolution;
|
||||
int gi_visibility_resolution;
|
||||
float gi_irradiance_smoothing;
|
||||
|
@ -1832,7 +1833,6 @@ typedef struct SceneEEVEE {
|
|||
int shadow_cube_size;
|
||||
int shadow_cascade_size;
|
||||
int shadow_pool_size;
|
||||
char _pad[4];
|
||||
|
||||
struct LightCache *light_cache DNA_DEPRECATED;
|
||||
struct LightCache *light_cache_data;
|
||||
|
|
|
@ -7338,6 +7338,14 @@ static void rna_def_scene_eevee(BlenderRNA *brna)
|
|||
RNA_def_property_range(prop, 0, INT_MAX);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
|
||||
|
||||
prop = RNA_def_property(srna, "gi_irradiance_samples", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_ui_text(prop,
|
||||
"Diffuse Samples",
|
||||
"Number of rays direction to evaluate when baking a single "
|
||||
"bounce of indirect lighting");
|
||||
RNA_def_property_range(prop, 0, INT_MAX);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
|
||||
|
||||
prop = RNA_def_property(srna, "gi_cubemap_resolution", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, eevee_shadow_size_items);
|
||||
RNA_def_property_ui_text(prop, "Cubemap Size", "Size of every cubemaps");
|
||||
|
|
Loading…
Reference in New Issue