Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 2,593 Lines • ▼ Show 20 Lines | |||||
| RNA_LAYER_ENGINE_EEVEE_GET_SET_BOOL(bloom_enable) | RNA_LAYER_ENGINE_EEVEE_GET_SET_BOOL(bloom_enable) | ||||
| RNA_LAYER_ENGINE_EEVEE_GET_SET_FLOAT(bloom_threshold) | RNA_LAYER_ENGINE_EEVEE_GET_SET_FLOAT(bloom_threshold) | ||||
| RNA_LAYER_ENGINE_EEVEE_GET_SET_FLOAT(bloom_knee) | RNA_LAYER_ENGINE_EEVEE_GET_SET_FLOAT(bloom_knee) | ||||
| RNA_LAYER_ENGINE_EEVEE_GET_SET_FLOAT(bloom_radius) | RNA_LAYER_ENGINE_EEVEE_GET_SET_FLOAT(bloom_radius) | ||||
| RNA_LAYER_ENGINE_EEVEE_GET_SET_FLOAT(bloom_intensity) | RNA_LAYER_ENGINE_EEVEE_GET_SET_FLOAT(bloom_intensity) | ||||
| RNA_LAYER_ENGINE_EEVEE_GET_SET_BOOL(motion_blur_enable) | RNA_LAYER_ENGINE_EEVEE_GET_SET_BOOL(motion_blur_enable) | ||||
| RNA_LAYER_ENGINE_EEVEE_GET_SET_INT(motion_blur_samples) | RNA_LAYER_ENGINE_EEVEE_GET_SET_INT(motion_blur_samples) | ||||
| RNA_LAYER_ENGINE_EEVEE_GET_SET_FLOAT(motion_blur_shutter) | RNA_LAYER_ENGINE_EEVEE_GET_SET_FLOAT(motion_blur_shutter) | ||||
| RNA_LAYER_ENGINE_EEVEE_GET_SET_BOOL(fxaa_enable) | |||||
| /* object engine */ | /* object engine */ | ||||
| RNA_LAYER_MODE_OBJECT_GET_SET_BOOL(show_wire) | RNA_LAYER_MODE_OBJECT_GET_SET_BOOL(show_wire) | ||||
| RNA_LAYER_MODE_OBJECT_GET_SET_BOOL(show_backface_culling) | RNA_LAYER_MODE_OBJECT_GET_SET_BOOL(show_backface_culling) | ||||
| /* mesh engine */ | /* mesh engine */ | ||||
| RNA_LAYER_MODE_EDIT_GET_SET_BOOL(show_occlude_wire) | RNA_LAYER_MODE_EDIT_GET_SET_BOOL(show_occlude_wire) | ||||
| RNA_LAYER_MODE_EDIT_GET_SET_BOOL(show_weight) | RNA_LAYER_MODE_EDIT_GET_SET_BOOL(show_weight) | ||||
| ▲ Show 20 Lines • Show All 3,630 Lines • ▼ Show 20 Lines | static void rna_def_scene_layer_engine_settings_eevee(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "motion_blur_shutter", PROP_FLOAT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "motion_blur_shutter", PROP_FLOAT, PROP_UNSIGNED); | ||||
| RNA_def_property_float_funcs(prop, "rna_LayerEngineSettings_Eevee_motion_blur_shutter_get", | RNA_def_property_float_funcs(prop, "rna_LayerEngineSettings_Eevee_motion_blur_shutter_get", | ||||
| "rna_LayerEngineSettings_Eevee_motion_blur_shutter_set", NULL); | "rna_LayerEngineSettings_Eevee_motion_blur_shutter_set", NULL); | ||||
| RNA_def_property_ui_text(prop, "Shutter", "Time taken in frames between shutter open and close"); | RNA_def_property_ui_text(prop, "Shutter", "Time taken in frames between shutter open and close"); | ||||
| RNA_def_property_ui_range(prop, 0.01f, 2.0f, 1, 2); | RNA_def_property_ui_range(prop, 0.01f, 2.0f, 1, 2); | ||||
| RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE); | RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_LAYER_CONTENT, "rna_SceneLayerEngineSettings_update"); | RNA_def_property_update(prop, NC_SCENE | ND_LAYER_CONTENT, "rna_SceneLayerEngineSettings_update"); | ||||
| prop = RNA_def_property(srna, "fxaa_enable", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_funcs(prop, "rna_LayerEngineSettings_Eevee_fxaa_enable_get", | |||||
| "rna_LayerEngineSettings_Eevee_fxaa_enable_set"); | |||||
| RNA_def_property_ui_text(prop, "FXAA", "Enable FXAA antialiasing, which is very fast, but not very good quality"); | |||||
| RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_LAYER_CONTENT, "rna_SceneLayerEngineSettings_update"); | |||||
| RNA_define_verify_sdna(1); /* not in sdna */ | RNA_define_verify_sdna(1); /* not in sdna */ | ||||
| } | } | ||||
| #ifdef WITH_CLAY_ENGINE | #ifdef WITH_CLAY_ENGINE | ||||
| static void rna_def_layer_collection_engine_settings_clay(BlenderRNA *brna) | static void rna_def_layer_collection_engine_settings_clay(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| Show All 15 Lines | static EnumPropertyItem clay_matcap_items[] = { | ||||
| {ICON_MATCAP_14, "14", ICON_MATCAP_14, "", ""}, | {ICON_MATCAP_14, "14", ICON_MATCAP_14, "", ""}, | ||||
| {ICON_MATCAP_15, "15", ICON_MATCAP_15, "", ""}, | {ICON_MATCAP_15, "15", ICON_MATCAP_15, "", ""}, | ||||
| {ICON_MATCAP_16, "16", ICON_MATCAP_16, "", ""}, | {ICON_MATCAP_16, "16", ICON_MATCAP_16, "", ""}, | ||||
| {ICON_MATCAP_17, "17", ICON_MATCAP_17, "", ""}, | {ICON_MATCAP_17, "17", ICON_MATCAP_17, "", ""}, | ||||
| {ICON_MATCAP_18, "18", ICON_MATCAP_18, "", ""}, | {ICON_MATCAP_18, "18", ICON_MATCAP_18, "", ""}, | ||||
| {ICON_MATCAP_19, "19", ICON_MATCAP_19, "", ""}, | {ICON_MATCAP_19, "19", ICON_MATCAP_19, "", ""}, | ||||
| {ICON_MATCAP_20, "20", ICON_MATCAP_20, "", ""}, | {ICON_MATCAP_20, "20", ICON_MATCAP_20, "", ""}, | ||||
| {ICON_MATCAP_21, "21", ICON_MATCAP_21, "", ""}, | {ICON_MATCAP_21, "21", ICON_MATCAP_21, "", ""}, | ||||
| {ICON_MATCAP_22, "22", ICON_MATCAP_22, "", ""}, | {ICON_MATCAP_22, "22", ICON_MATCAP_22, "", ""}, | ||||
dfelinto: UI text should follow the following rule:
* First letters are always capitalized.
* No… | |||||
Done Inline ActionsI'm thinking of removing these tuning parameters too. By my measurements they don't (meaningfully) impact performance on modernish cards, and are somewhat hard to understand the exact effects of for anyone who isn't familiar with the shader (or has the debug option ;)). What do you think? cmr: I'm thinking of removing these tuning parameters too. By my measurements they don't… | |||||
Done Inline ActionsI think this is a great idea. If performance is really an issue the user can simply run without anti-alias altogether. dfelinto: I think this is a great idea. If performance is really an issue the user can simply run without… | |||||
| {ICON_MATCAP_23, "23", ICON_MATCAP_23, "", ""}, | {ICON_MATCAP_23, "23", ICON_MATCAP_23, "", ""}, | ||||
| {ICON_MATCAP_24, "24", ICON_MATCAP_24, "", ""}, | {ICON_MATCAP_24, "24", ICON_MATCAP_24, "", ""}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| srna = RNA_def_struct(brna, "LayerCollectionEngineSettingsClay", "LayerCollectionSettings"); | srna = RNA_def_struct(brna, "LayerCollectionEngineSettingsClay", "LayerCollectionSettings"); | ||||
| RNA_def_struct_ui_text(srna, "Collections Clay Engine Settings", "Engine specific settings for this collection"); | RNA_def_struct_ui_text(srna, "Collections Clay Engine Settings", "Engine specific settings for this collection"); | ||||
| ▲ Show 20 Lines • Show All 3,008 Lines • Show Last 20 Lines | |||||
UI text should follow the following rule:
So my suggestions would be:
And remove the debug option indeed.