37 static void rna_Light_buffer_size_set(
PointerRNA *
ptr,
int value)
41 CLAMP(value, 128, 10240);
52 return &RNA_PointLight;
56 return &RNA_SpotLight;
58 return &RNA_AreaLight;
94 {
LA_LOCAL,
"POINT", 0,
"Point",
"Omnidirectional point light source"},
95 {
LA_SUN,
"SUN", 0,
"Sun",
"Constant direction parallel ray light source"},
96 {
LA_SPOT,
"SPOT", 0,
"Spot",
"Directional cone light source"},
97 {
LA_AREA,
"AREA", 0,
"Area",
"Directional area light source"},
105 static float default_color[4] = {1.0f, 1.0f, 1.0f, 1.0f};
127 "Falloff distance - the light is at half the original intensity at this point");
161 "Custom Attenuation",
162 "Use custom attenuation distance instead of global light threshold");
170 prop,
"Cutoff Distance",
"Distance at which the light influence will be set to 0");
195 switch (light_type) {
202 prop,
"Strength",
"Sunlight strength in watts per meter squared (W/m^2)");
213 "The energy this light would emit over its entire area "
214 "if it wasn't limited by the spot angle");
227 "Light energy emitted over the entire area of the light in all directions");
275 prop,
"Constant Coefficient",
"Constant distance attenuation coefficient");
288 prop,
"Quadratic Coefficient",
"Quadratic distance attenuation coefficient");
304 "Shadow Buffer Size",
305 "Resolution of the shadow buffer, higher values give crisper shadows "
306 "but use more memory");
315 "Shadow Buffer Clip Start",
316 "Shadow map clip start, below which objects will not generate shadows");
343 prop,
"Shadow Soft Size",
"Light size for ray shadow sampling (Raytraced shadows)");
351 "Use screen space ray-tracing to have correct shadowing "
352 "near occluder, or for small features that does not appear "
360 "Contact Shadow Distance",
361 "World space distance in which to search for "
362 "screen space occluder");
377 prop,
"Contact Shadow Thickness",
"Pixel thickness used to detect occlusion");
385 "Cascade Max Distance",
386 "End distance of the cascaded shadow map (only in perspective view)");
393 prop,
"Cascade Count",
"Number of texture used by the cascaded shadow map");
400 "Exponential Distribution",
401 "Higher value increase resolution towards the viewpoint");
408 prop,
"Cascade Fade",
"How smooth is the transition between each cascade");
460 prop,
"Size",
"Size of the area of the area light, X direction size for rectangle shapes");
470 "Size of the area of the area light in the Y direction for rectangle shapes");
479 "How widely the emitted light fans out, as in the case of a gridded softbox");
519 "Display transparent cone in 3D view to visualize which objects are contained in it");
struct Scene * CTX_data_scene(const bContext *C)
struct Main * CTX_data_main(const bContext *C)
#define BLT_I18NCONTEXT_ID_LIGHT
void DEG_id_tag_update(struct ID *id, int flag)
#define LA_FALLOFF_SLIDERS
#define LA_FALLOFF_INVCOEFFICIENTS
#define LA_FALLOFF_CONSTANT
#define LA_FALLOFF_INVSQUARE
#define LA_CUSTOM_ATTENUATION
#define LA_FALLOFF_INVLINEAR
void ED_node_shader_default(const struct bContext *C, struct ID *id)
Read Guarded memory(de)allocation.
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position CLAMP
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
void rna_def_animdata_common(StructRNA *srna)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
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_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_update(PropertyRNA *prop, int noteflag, const char *func)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
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_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_struct_translation_context(StructRNA *srna, const char *context)
void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
static void rna_def_area_light(BlenderRNA *brna)
void RNA_def_light(BlenderRNA *brna)
static void rna_def_sun_light(BlenderRNA *brna)
static void rna_def_light_shadow(StructRNA *srna, bool sun)
static void rna_def_light_falloff(StructRNA *srna)
const EnumPropertyItem rna_enum_light_type_items[]
static void rna_def_point_light(BlenderRNA *brna)
static void rna_def_light_energy(StructRNA *srna, const short light_type)
static void rna_def_spot_light(BlenderRNA *brna)
static void rna_def_light(BlenderRNA *brna)
struct bNodeTree * nodetree
void WM_main_add_notifier(unsigned int type, void *reference)