84 if (wrld->use_nodes && wrld->nodetree ==
nullptr) {
89 rna_World_update(bmain, scene,
ptr);
90 rna_World_draw_update(bmain, scene,
ptr);
96 char value_buf[
sizeof(lgm->
name)];
98 memcpy(value, value_buf,
len + 1);
107void rna_World_lightgroup_set(
PointerRNA *
ptr,
const char *value)
121 {0,
nullptr, 0,
nullptr,
nullptr},
146 prop,
"Distance",
"Length of rays, defines how far away other faces give occlusion effect");
157 {
WO_MIST_LINEAR,
"LINEAR", 0,
"Linear",
"Use linear progression"},
162 "Use inverse quadratic progression"},
163 {0,
nullptr, 0,
nullptr,
nullptr},
174 prop,
"Use Mist",
"Occlude objects with the environment color as they are further away");
188 prop,
"Start",
"Starting distance of the mist, measured from the camera");
216 static const float default_world_color[] = {0.05f, 0.05f, 0.05f};
222 "World data-block describing the environment and ambient lighting of a scene");
232 "The world's volume used to be rendered by EEVEE Legacy. Conversion is "
233 "needed for it to render properly.");
276 prop,
"rna_World_lightgroup_get",
"rna_World_lightgroup_length",
"rna_World_lightgroup_set");
290 "If non-zero, the maximum value for world contribution that will be "
291 "recorded inside the world light probe. The excess contribution is "
292 "converted to a sun light. This reduces the light bleeding caused by "
293 "very bright light sources.");
300 prop,
"Sun Angle",
"Angular diameter of the Sun as seen from the Earth");
312 "Shadows Resolution Limit",
313 "Maximum size of a shadow map pixel. Higher values use less memory at "
314 "the cost of shadow quality.");
322 prop,
"Shadow Filter Radius",
"Blur shadow aliasing using Percentage Closer Filtering");
331 "Enable jittered soft shadows to increase shadow precision (disabled in viewport unless "
332 "enabled in the render settings). Has a high performance impact.");
341 "Shadow Jitter Overblur",
342 "Apply shadow tracing to each jittered sample to reduce under-sampling artifacts");
Scene * CTX_data_scene(const bContext *C)
Main * CTX_data_main(const bContext *C)
int BKE_lightgroup_membership_length(const LightgroupMembership *lgm)
void BKE_lightgroup_membership_set(LightgroupMembership **lgm, const char *name)
int BKE_lightgroup_membership_get(const LightgroupMembership *lgm, char *name)
void DEG_id_tag_update(ID *id, unsigned int flags)
void DEG_relations_tag_update(Main *bmain)
@ WO_MIST_INVERSE_QUADRATIC
@ WO_USE_EEVEE_FINITE_VOLUME
@ WO_USE_SUN_SHADOW_JITTER
@ LIGHT_PROBE_RESOLUTION_128
@ LIGHT_PROBE_RESOLUTION_512
@ LIGHT_PROBE_RESOLUTION_4096
@ LIGHT_PROBE_RESOLUTION_256
@ LIGHT_PROBE_RESOLUTION_2048
@ LIGHT_PROBE_RESOLUTION_1024
void ED_node_shader_default(const bContext *C, ID *id)
Read Guarded memory(de)allocation.
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
PointerRNA rna_pointer_inherit_refine(const PointerRNA *ptr, StructRNA *type, void *data)
void rna_def_animdata_common(StructRNA *srna)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_array(PropertyRNA *prop, int length)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array)
void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
static const EnumPropertyItem world_probe_resolution_items[]
void RNA_def_world(BlenderRNA *brna)
static void rna_def_world_mist(BlenderRNA *brna)
static void rna_def_lighting(BlenderRNA *brna)
void WM_main_add_notifier(uint type, void *reference)