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 6,154 Lines • ▼ Show 20 Lines | static void rna_def_scene_render_data(BlenderRNA *brna) | ||||
| /* Hairs */ | /* Hairs */ | ||||
| prop = RNA_def_property(srna, "hair_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "hair_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, hair_shape_type_items); | RNA_def_property_enum_items(prop, hair_shape_type_items); | ||||
| RNA_def_property_ui_text(prop, "Hair Shape Type", "Hair shape type"); | RNA_def_property_ui_text(prop, "Hair Shape Type", "Hair shape type"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_glsl_update"); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_glsl_update"); | ||||
| prop = RNA_def_property(srna, "hair_subdiv", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "hair_subdiv", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_range(prop, 0, 3); | RNA_def_property_range(prop, 0, 3); | ||||
| RNA_def_property_ui_text(prop, "Additional Subdiv", "Additional subdivision along the hair"); | RNA_def_property_ui_text(prop, "Additional Subdivision", "Additional subdivision along the hair"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_glsl_update"); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_glsl_update"); | ||||
| /* Performance */ | /* Performance */ | ||||
| prop = RNA_def_property(srna, "use_high_quality_normals", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_high_quality_normals", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "perf_flag", SCE_PERF_HQ_NORMALS); | RNA_def_property_boolean_sdna(prop, NULL, "perf_flag", SCE_PERF_HQ_NORMALS); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "High Quality Normals", | "High Quality Normals", | ||||
| "Use high quality tangent space at the cost of lower performance"); | "Use high quality tangent space at the cost of lower performance"); | ||||
| ▲ Show 20 Lines • Show All 1,870 Lines • Show Last 20 Lines | |||||