37 switch (probe->type) {
39 return RNA_LightProbePlane;
41 return RNA_LightProbeSphere;
43 return RNA_LightProbeVolume;
45 return RNA_LightProbe;
63 {0,
nullptr, 0,
nullptr,
nullptr},
69 ICON_LIGHTPROBE_SPHERE,
71 "Light probe that captures precise lighting from all directions at a single point in space"},
74 ICON_LIGHTPROBE_PLANE,
76 "Light probe that captures incoming light from a single direction on a plane"},
79 ICON_LIGHTPROBE_VOLUME,
81 "Light probe that captures low frequency lighting inside a volume"},
82 {0,
nullptr, 0,
nullptr,
nullptr},
93 srna,
"LightProbe",
"Light Probe data-block for lighting capture objects");
106 prop,
"Clip Start",
"Probe clip start, below which objects will not appear in reflections");
131 prop,
"Visibility Bias",
"Bias for reducing self shadowing (Deprecated)");
138 "Visibility Bleed Bias",
139 "Bias for reducing light-bleed on variance shadow maps (Deprecated)");
146 prop,
"Visibility Blur",
"Filter size of the visibility blur (Deprecated)");
155 prop,
"Visibility Collection",
"Restrict objects visible for this probe (Deprecated)");
170 prop,
"Display Data (Deprecated)",
"Deprecated, use use_data_display instead");
177 prop,
"Display Data",
"Display sampled data in the viewport to debug captured light");
202 "Light probe that captures incoming light from a single direction on a plane");
210 "Amount of parallax to use for reflections on Blended materials or "
211 "Shader To RGB evaluation");
225 "Light probe that captures precise lighting from all directions at a single point in space");
244 prop,
"Clip End",
"Probe clip end, beyond which objects will not appear in reflections");
251 prop,
"Use Custom Parallax",
"Enable custom settings for the parallax correction volume");
279 srna,
"Volume Probe",
"Light probe that captures low frequency lighting inside a volume");
287 prop,
"Intensity",
"Modify the intensity of the lighting captured by this probe");
295 prop,
"Resolution X",
"Number of samples along the x axis of the volume");
302 prop,
"Resolution Y",
"Number of samples along the y axis of the volume");
309 prop,
"Resolution Z",
"Number of samples along the z axis of the volume");
320 "Distance around the probe volume that will be considered "
328 "Offset sampling of the irradiance grid in "
329 "the surface normal direction to reduce light bleeding");
338 "Offset sampling of the irradiance grid in "
339 "the viewing direction to reduce light bleeding");
347 prop,
"Facing Bias",
"Smoother irradiance interpolation but introduce light bleeding");
355 prop,
"Bake Samples",
"Number of ray directions to evaluate when baking");
362 prop,
"Surface Offset",
"Moves capture points away from surfaces to prevent artifacts");
370 "Distance to search for valid capture positions to prevent "
371 "lighting artifacts");
381 "Number of surfels to spawn in one local unit distance (higher values improve quality)");
387 "Validity Threshold",
388 "Ratio of front-facing surface hits under which a grid sample will "
389 "not be considered for lighting");
397 "Dilation Threshold",
398 "Ratio of front-facing surface hits under which a grid sample will "
399 "reuse neighbors grid sample lighting");
409 "Radius in grid sample to search valid grid samples to copy into invalid grid samples");
419 "Bake incoming light from the world instead of just the visibility "
420 "for more accurate lighting, but lose correct blending to surrounding irradiance volumes");
427 "Bake light bounces from light sources for more accurate lighting");
433 prop,
"Capture Emission",
"Bake emissive surfaces for more accurate lighting");
441 prop,
"Clamp Direct",
"Clamp the direct lighting intensity to reduce noise (0 to disable)");
450 "Clamp the indirect lighting intensity to reduce noise (0 to disable)");
Object groups, one object can be in many groups at once.
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
static EnumPropertyItem parallax_type_items[]
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_struct_ui_icon(StructRNA *srna, int icon)
static EnumPropertyItem lightprobe_type_items[]
static void rna_def_lightprobe_volume(BlenderRNA *brna)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
static void rna_def_lightprobe(BlenderRNA *brna)
@ LIGHTPROBE_SHAPE_ELLIPSOID
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
static void rna_def_lightprobe_sphere(BlenderRNA *brna)
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)
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 void rna_def_lightprobe_plane(BlenderRNA *brna)
void RNA_def_lightprobe(BlenderRNA *brna)
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)
@ LIGHTPROBE_GRID_CAPTURE_INDIRECT
@ LIGHTPROBE_GRID_CAPTURE_EMISSION
@ LIGHTPROBE_GRID_CAPTURE_WORLD
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
@ LIGHTPROBE_FLAG_SHOW_PARALLAX
@ LIGHTPROBE_FLAG_SHOW_CLIP_DIST
@ LIGHTPROBE_FLAG_CUSTOM_PARALLAX
@ LIGHTPROBE_FLAG_SHOW_DATA
@ LIGHTPROBE_FLAG_SHOW_INFLUENCE
@ LIGHTPROBE_FLAG_INVERT_GROUP
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)