Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
| Show First 20 Lines • Show All 4,689 Lines • ▼ Show 20 Lines | # endif | ||||
| prop = RNA_def_property(srna, "gpu_viewport_quality", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "gpu_viewport_quality", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "gpu_viewport_quality"); | RNA_def_property_float_sdna(prop, NULL, "gpu_viewport_quality"); | ||||
| RNA_def_property_float_default(prop, 0.6f); | RNA_def_property_float_default(prop, 0.6f); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Viewport Quality", "Quality setting for Solid mode rendering in the 3d viewport"); | prop, "Viewport Quality", "Quality setting for Solid mode rendering in the 3d viewport"); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | RNA_def_property_update(prop, 0, "rna_userdef_update"); | ||||
| prop = RNA_def_property(srna, "gpu_viewport_scale", PROP_FLOAT, PROP_FACTOR); | |||||
| RNA_def_property_float_sdna(prop, NULL, "gpu_viewport_scale"); | |||||
| RNA_def_property_float_default(prop, 1.0f); | |||||
| RNA_def_property_range(prop, 0.25f, 1.0f); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Render Scale", | |||||
| "Lower the 3D viewport's render resolution, potentially improving the performance"); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | |||||
| prop = RNA_def_property(srna, "solid_lights", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "solid_lights", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "light_param", ""); | RNA_def_property_collection_sdna(prop, NULL, "light_param", ""); | ||||
| RNA_def_property_struct_type(prop, "UserSolidLight"); | RNA_def_property_struct_type(prop, "UserSolidLight"); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Solid Lights", "Lights user to display objects in solid draw mode"); | prop, "Solid Lights", "Lights user to display objects in solid draw mode"); | ||||
| prop = RNA_def_property(srna, "light_ambient", PROP_FLOAT, PROP_COLOR); | prop = RNA_def_property(srna, "light_ambient", PROP_FLOAT, PROP_COLOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "light_ambient"); | RNA_def_property_float_sdna(prop, NULL, "light_ambient"); | ||||
| ▲ Show 20 Lines • Show All 887 Lines • Show Last 20 Lines | |||||