Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_lamp.c
| Context not available. | |||||
| RNA_def_property_ui_range(prop, 0, 1, 10, 3); | RNA_def_property_ui_range(prop, 0, 1, 10, 3); | ||||
| RNA_def_property_ui_text(prop, "Shadow Factor", "Amount texture affects shadow"); | RNA_def_property_ui_text(prop, "Shadow Factor", "Amount texture affects shadow"); | ||||
| RNA_def_property_update(prop, 0, "rna_Lamp_update"); | RNA_def_property_update(prop, 0, "rna_Lamp_update"); | ||||
| prop = RNA_def_property(srna, "lod_bias", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "lodbias"); | |||||
| RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 10, 3); | |||||
| RNA_def_property_ui_text(prop, "Lod Bias", "Amount bias on mipmapping"); | |||||
| RNA_def_property_update(prop, 0, "rna_Lamp_update"); | |||||
| } | } | ||||
| static void rna_def_lamp_sky_settings(BlenderRNA *brna) | static void rna_def_lamp_sky_settings(BlenderRNA *brna) | ||||
| Context not available. | |||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| static EnumPropertyItem prop_shadow_filter_type_items[] = { | |||||
| {LA_SHADOW_FILTER_NONE, "NONE", 0, "None", "None filtering"}, | |||||
| {LA_SHADOW_FILTER_PCF, "PCF", 0, "PCF", "Percentage Closer Filtering"}, | |||||
| {LA_SHADOW_FILTER_PCF_BAIL, "PCF_BAIL", 0, "PCF Early Bail", "Percentage Closer Filtering Early Bail"}, | |||||
| {0, NULL, 0, NULL, NULL} | |||||
| }; | |||||
| prop = RNA_def_property(srna, "use_shadow", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_shadow", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_use_shadow_get", "rna_use_shadow_set"); | RNA_def_property_boolean_funcs(prop, "rna_use_shadow_get", "rna_use_shadow_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_Lamp_draw_update"); | RNA_def_property_update(prop, 0, "rna_Lamp_draw_update"); | ||||
| Context not available. | |||||
| 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", | |||||
| "Enable static shadows"); | |||||
| 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); | ||||
| Context not available. | |||||
| RNA_def_property_ui_text(prop, "Shadow Buffer Soft", "Size of shadow buffer sampling area"); | RNA_def_property_ui_text(prop, "Shadow Buffer Soft", "Size of shadow buffer sampling area"); | ||||
| RNA_def_property_update(prop, 0, "rna_Lamp_update"); | RNA_def_property_update(prop, 0, "rna_Lamp_update"); | ||||
| prop = RNA_def_property(srna, "shadow_buffer_sharp", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "bufsharp"); | |||||
| RNA_def_property_range(prop, -1.0f, 1.0f); | |||||
| RNA_def_property_ui_text(prop, "Shadow Buffer Sharpness", "Sharpness of buffer sampling"); | |||||
| RNA_def_property_update(prop, 0, "rna_Lamp_update"); | |||||
| prop = RNA_def_property(srna, "shadow_buffer_samples", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "shadow_buffer_samples", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "samp"); | RNA_def_property_int_sdna(prop, NULL, "samp"); | ||||
| RNA_def_property_range(prop, 1, 16); | RNA_def_property_range(prop, 1, 16); | ||||
| Context not available. | |||||
| RNA_def_property_ui_text(prop, "Shadow Map Type", "The shadow mapping algorithm used"); | RNA_def_property_ui_text(prop, "Shadow Map Type", "The shadow mapping algorithm used"); | ||||
| RNA_def_property_update(prop, 0, "rna_Lamp_update"); | RNA_def_property_update(prop, 0, "rna_Lamp_update"); | ||||
| prop = RNA_def_property(srna, "shadow_filter", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "shadow_filter"); | |||||
| RNA_def_property_enum_items(prop, prop_shadow_filter_type_items); | |||||
| RNA_def_property_ui_text(prop, "Shadow Map Filter Type", "The shadow mapping filtering algorithm used"); | |||||
| RNA_def_property_update(prop, 0, "rna_Lamp_update"); | |||||
| prop = RNA_def_property(srna, "use_auto_clip_start", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_auto_clip_start", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "bufflag", LA_SHADBUF_AUTO_START); | RNA_def_property_boolean_sdna(prop, NULL, "bufflag", LA_SHADBUF_AUTO_START); | ||||
| Context not available. | |||||