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,082 Lines • ▼ Show 20 Lines | static void rna_def_scene_render_layer(BlenderRNA *brna) | ||||
| /* Freestyle */ | /* Freestyle */ | ||||
| rna_def_freestyle_settings(brna); | rna_def_freestyle_settings(brna); | ||||
| prop = RNA_def_property(srna, "freestyle_settings", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "freestyle_settings", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_NEVER_NULL); | RNA_def_property_flag(prop, PROP_NEVER_NULL); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "freestyleConfig"); | RNA_def_property_pointer_sdna(prop, NULL, "freestyleConfig"); | ||||
| RNA_def_property_struct_type(prop, "FreestyleSettings"); | RNA_def_property_struct_type(prop, "FreestyleSettings"); | ||||
| RNA_def_property_ui_text(prop, "Freestyle Settings", ""); | RNA_def_property_ui_text(prop, "Freestyle Settings", ""); | ||||
| /* Cycles denoising */ | |||||
| prop = RNA_def_property(srna, "use_denoising", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "denoising_flag", SCE_DENOISING_USE); | |||||
| RNA_def_property_ui_text(prop, "Denoise Render Result", "Denoise the rendered image during rendering"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_diffuse_direct", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "denoising_flag", SCE_DENOISING_PASS_DIFFDIR); | |||||
| RNA_def_property_ui_text(prop, "Diffuse Direct", "Denoise the direct diffuse lighting"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_diffuse_indirect", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "denoising_flag", SCE_DENOISING_PASS_DIFFIND); | |||||
| RNA_def_property_ui_text(prop, "Diffuse Indirect", "Denoise the indirect diffuse lighting"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_glossy_direct", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "denoising_flag", SCE_DENOISING_PASS_GLOSSDIR); | |||||
| RNA_def_property_ui_text(prop, "Glossy Direct", "Denoise the direct glossy lighting"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_glossy_indirect", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "denoising_flag", SCE_DENOISING_PASS_GLOSSIND); | |||||
| RNA_def_property_ui_text(prop, "Glossy Indirect", "Denoise the indirect glossy lighting"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_transmission_direct", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "denoising_flag", SCE_DENOISING_PASS_TRANSDIR); | |||||
| RNA_def_property_ui_text(prop, "Transmission Direct", "Denoise the direct transmission lighting"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_transmission_indirect", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "denoising_flag", SCE_DENOISING_PASS_TRANSIND); | |||||
| RNA_def_property_ui_text(prop, "Transmission Indirect", "Denoise the indirect transmission lighting"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_subsurface_direct", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "denoising_flag", SCE_DENOISING_PASS_SUBDIR); | |||||
| RNA_def_property_ui_text(prop, "Subsurface Direct", "Denoise the direct subsurface lighting"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_subsurface_indirect", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "denoising_flag", SCE_DENOISING_PASS_SUBIND); | |||||
| RNA_def_property_ui_text(prop, "Subsurface Indirect", "Denoise the indirect subsurface lighting"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_strength", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "denoising_weighting"); | |||||
| RNA_def_property_range(prop, -4.0f, 4.0f); | |||||
| RNA_def_property_ui_text(prop, "Denoising Strength Adjust", "Controls neighbor pixel weighting for the denoising filter (lower values preserve more detail, but aren't as smooth)"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_feature_strength", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "denoising_feature_strength"); | |||||
| RNA_def_property_range(prop, -4.0f, 4.0f); | |||||
| RNA_def_property_ui_text(prop, "Denoising Feature Strength Adjust", "Controls removal of noisy image feature passes (lower values preserve more detail, but aren't as smooth)"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_radius", PROP_INT, PROP_NONE); | |||||
| RNA_def_property_int_sdna(prop, NULL, "denoising_radius"); | |||||
| RNA_def_property_range(prop, 1, 50); | |||||
| RNA_def_property_ui_text(prop, "Denoising Radius", "Size of the image area that's used to denoise a pixel. Higher values get rid of more noise, but might lose detail and are slower"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "denoising_relative_pca", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "denoising_flag", SCE_DENOISING_RELATIVE_PCA); | |||||
| RNA_def_property_ui_text(prop, "Relative filter", | |||||
| "When removing features that don't carry information, use a relative threshold instead of an absolute one. Can help to reduce artifacts, but might cause detail loss around edges"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| } | } | ||||
| /* Render Layers */ | /* Render Layers */ | ||||
| static void rna_def_render_layers(BlenderRNA *brna, PropertyRNA *cprop) | static void rna_def_render_layers(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| ▲ Show 20 Lines • Show All 2,356 Lines • Show Last 20 Lines | |||||