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 5,729 Lines • ▼ Show 20 Lines | static void rna_def_scene_render_data(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "filter_size", PROP_FLOAT, PROP_PIXEL); | prop = RNA_def_property(srna, "filter_size", PROP_FLOAT, PROP_PIXEL); | ||||
| RNA_def_property_float_sdna(prop, NULL, "gauss"); | RNA_def_property_float_sdna(prop, NULL, "gauss"); | ||||
| RNA_def_property_range(prop, 0.0f, 500.0f); | RNA_def_property_range(prop, 0.0f, 500.0f); | ||||
| RNA_def_property_ui_range(prop, 0.01f, 10.0f, 1, 2); | RNA_def_property_ui_range(prop, 0.01f, 10.0f, 1, 2); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Filter Size", "Width over which the reconstruction filter combines samples"); | prop, "Filter Size", "Width over which the reconstruction filter combines samples"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | ||||
| prop = RNA_def_property(srna, "alpha_mode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "film_transparent", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "alphamode"); | RNA_def_property_boolean_sdna(prop, NULL, "alphamode", R_ALPHAPREMUL); | ||||
| RNA_def_property_enum_items(prop, alpha_mode_items); | RNA_def_property_ui_text(prop, "Transparent", "World background is transparent, for compositing the render over another background"); | ||||
| RNA_def_property_ui_text( | |||||
| prop, "Alpha Mode", "Representation of alpha information in the RGBA pixels"); | |||||
| 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, "use_freestyle", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_freestyle", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "mode", R_EDGE_FRS); | RNA_def_property_boolean_sdna(prop, NULL, "mode", R_EDGE_FRS); | ||||
| RNA_def_property_ui_text(prop, "Edge", "Draw stylized strokes using Freestyle"); | RNA_def_property_ui_text(prop, "Edge", "Draw stylized strokes using Freestyle"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_freestyle_update"); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_freestyle_update"); | ||||
| ▲ Show 20 Lines • Show All 1,947 Lines • Show Last 20 Lines | |||||