50 World *wo = id_cast<World *>(ptr->owner_id);
68 World *wo = id_cast<World *>(ptr->owner_id);
75void rna_World_lightgroup_get(
PointerRNA *ptr,
char *value)
78 char value_buf[
sizeof(lgm->name)];
80 memcpy(value, value_buf,
len + 1);
83int rna_World_lightgroup_length(
PointerRNA *ptr)
89void rna_World_lightgroup_set(
PointerRNA *ptr,
const char *value)
100void rna_World_use_nodes_set(
PointerRNA * ,
bool )
120 {0,
nullptr, 0,
nullptr,
nullptr},
145 prop,
"Distance",
"Length of rays, defines how far away other faces give occlusion effect");
156 {
WO_MIST_LINEAR,
"LINEAR", 0,
"Linear",
"Use linear progression"},
161 "Use inverse quadratic progression"},
162 {0,
nullptr, 0,
nullptr,
nullptr},
173 prop,
"Use Mist",
"Occlude objects with the environment color as they are further away");
187 prop,
"Start",
"Starting distance of the mist, measured from the camera");
215 static const float default_world_color[] = {0.05f, 0.05f, 0.05f};
221 "World data-block describing the environment and ambient lighting of a scene");
231 "The world's volume used to be rendered by EEVEE Legacy. Conversion is "
232 "needed for it to render properly.");
272 "Unused but kept for compatibility reasons. Setting the property "
273 "has no effect, and getting it always returns True.",
280 prop,
"rna_World_lightgroup_get",
"rna_World_lightgroup_length",
"rna_World_lightgroup_set");
295 "If non-zero, the maximum value for world contribution that will be "
296 "recorded inside the world light probe. The excess contribution is "
297 "converted to a sun light. This reduces the light bleeding caused by "
298 "very bright light sources.");
305 prop,
"Sun Angle",
"Angular diameter of the Sun as seen from the Earth");
317 "Shadows Resolution Limit",
318 "Maximum size of a shadow map pixel. Higher values use less memory at "
319 "the cost of shadow quality.");
327 prop,
"Shadow Filter Radius",
"Blur shadow aliasing using Percentage Closer Filtering");
336 "Enable jittered soft shadows to increase shadow precision (disabled in viewport unless "
337 "enabled in the render settings). Has a high performance impact.");
346 "Shadow Jitter Overblur",
347 "Apply shadow tracing to each jittered sample to reduce under-sampling artifacts");
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
void WM_main_add_notifier(uint type, void *reference)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_deprecated(PropertyRNA *prop, const char *note, const short version, const short removal_version)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
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_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
int BKE_lightgroup_membership_get(const LightgroupMembership *lgm, char *name)
@ WO_USE_EEVEE_FINITE_VOLUME
@ WO_USE_SUN_SHADOW_JITTER
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void BKE_lightgroup_membership_set(LightgroupMembership **lgm, const char *name)
void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname)
void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
void rna_def_animdata_common(StructRNA *srna)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
@ WO_MIST_INVERSE_QUADRATIC
void DEG_id_tag_update(ID *id, unsigned int flags)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
static const EnumPropertyItem world_probe_resolution_items[]
@ LIGHT_PROBE_RESOLUTION_512
@ LIGHT_PROBE_RESOLUTION_4096
@ LIGHT_PROBE_RESOLUTION_2048
@ LIGHT_PROBE_RESOLUTION_256
@ LIGHT_PROBE_RESOLUTION_128
@ LIGHT_PROBE_RESOLUTION_1024
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
void RNA_def_world(BlenderRNA *brna)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_property_array(PropertyRNA *prop, int length)
static void rna_def_lighting(BlenderRNA *brna)
static void rna_def_world_mist(BlenderRNA *brna)
int BKE_lightgroup_membership_length(const LightgroupMembership *lgm)