Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_lamp.c
| Show First 20 Lines • Show All 529 Lines • ▼ Show 20 Lines | static void rna_def_lamp_shadow(StructRNA *srna, int spot, int area) | ||||
| RNA_def_property_int_sdna(prop, NULL, "bufsize"); | RNA_def_property_int_sdna(prop, NULL, "bufsize"); | ||||
| RNA_def_property_range(prop, 128, 10240); | RNA_def_property_range(prop, 128, 10240); | ||||
| RNA_def_property_ui_text(prop, "Shadow Buffer Size", | RNA_def_property_ui_text(prop, "Shadow Buffer Size", | ||||
| "Resolution of the shadow buffer, higher values give crisper shadows " | "Resolution of the shadow buffer, higher values give crisper shadows " | ||||
| "but use more memory"); | "but use more memory"); | ||||
| RNA_def_property_int_funcs(prop, NULL, "rna_Lamp_buffer_size_set", NULL); | RNA_def_property_int_funcs(prop, NULL, "rna_Lamp_buffer_size_set", NULL); | ||||
| RNA_def_property_update(prop, 0, "rna_Lamp_update"); | RNA_def_property_update(prop, 0, "rna_Lamp_update"); | ||||
| prop = RNA_def_property(srna, "static_shadow", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "mode", LA_STATIC_SHADOW); | |||||
| RNA_def_property_ui_text(prop, "Static Shadow", | |||||
| "Don't re-update shadow during game"); | |||||
sybren: I don't like properties that are only explained in terms of what they do //not// do. Better use… | |||||
panzergameAuthorUnsubmitted Not Done Inline ActionsEhh, link a BGE python function in the description ?? panzergame: Ehh, link a BGE python function in the description ?? | |||||
| prop = RNA_def_property(srna, "shadow_filter_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "shadow_filter_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "filtertype"); | RNA_def_property_enum_sdna(prop, NULL, "filtertype"); | ||||
| RNA_def_property_enum_items(prop, prop_shadbuffiltertype_items); | RNA_def_property_enum_items(prop, prop_shadbuffiltertype_items); | ||||
| RNA_def_property_ui_text(prop, "Shadow Filter Type", "Type of shadow filter (Buffer Shadows)"); | RNA_def_property_ui_text(prop, "Shadow Filter Type", "Type of shadow filter (Buffer Shadows)"); | ||||
| RNA_def_property_update(prop, 0, "rna_Lamp_update"); | RNA_def_property_update(prop, 0, "rna_Lamp_update"); | ||||
| prop = RNA_def_property(srna, "shadow_sample_buffers", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "shadow_sample_buffers", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "buffers"); | RNA_def_property_enum_sdna(prop, NULL, "buffers"); | ||||
| ▲ Show 20 Lines • Show All 312 Lines • Show Last 20 Lines | |||||
I don't like properties that are only explained in terms of what they do not do. Better use something like "Enable static shadows, which are only updated when updateShadow() is called".