Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 8,656 Lines • ▼ Show 20 Lines | static void def_cmp_denoise(StructRNA *srna) | ||||
| RNA_def_struct_sdna_from(srna, "NodeDenoise", "storage"); | RNA_def_struct_sdna_from(srna, "NodeDenoise", "storage"); | ||||
| prop = RNA_def_property(srna, "use_hdr", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_hdr", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "hdr", 0); | RNA_def_property_boolean_sdna(prop, NULL, "hdr", 0); | ||||
| RNA_def_property_ui_text(prop, "HDR", "Process HDR images"); | RNA_def_property_ui_text(prop, "HDR", "Process HDR images"); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| } | } | ||||
| static void def_cmp_antialiasing(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| RNA_def_struct_sdna_from(srna, "NodeAntiAliasingData", "storage"); | |||||
| prop = RNA_def_property(srna, "threshold", PROP_FLOAT, PROP_FACTOR); | |||||
jbakker: Consider using `PROP_FACTOR` as the fields are a factor. | |||||
| RNA_def_property_float_sdna(prop, NULL, "threshold"); | |||||
| RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.1, 3); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Threshold", | |||||
| "Threshold to detect edges (smaller threshold makes more sensitive detection)"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
Not Done Inline ActionsAm not convinced this is really artist-friendly controls. sergey: Am not convinced this is really artist-friendly controls. | |||||
Not Done Inline ActionsAgreed, currently this merely uses the same parameters/namings as the original GLSL version that mainly used by game developers. irie: Agreed, currently this merely uses the same parameters/namings as the original GLSL version… | |||||
| prop = RNA_def_property(srna, "contrast_limit", PROP_FLOAT, PROP_FACTOR); | |||||
| RNA_def_property_float_sdna(prop, NULL, "contrast_limit"); | |||||
Not Done Inline ActionsLocal Contrast Adaptation Factor is too long I would suggest Contrast Limit and perhaps make the default size of the node a bit wider so the text fits. jbakker: Local Contrast Adaptation Factor is too long
I would suggest `Contrast Limit` and perhaps make… | |||||
Not Done Inline Actionsdone zazizizou: done | |||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | |||||
| RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.1, 3); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Contrast Limit", | |||||
| "How much to eliminate spurious edges to avoid artifacts (the larger value makes less " | |||||
| "active; the value 2.0, for example, means discard a detected edge if there is a " | |||||
| "neighboring edge that has 2.0 times bigger contrast than the current one)"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| prop = RNA_def_property(srna, "corner_rounding", PROP_FLOAT, PROP_FACTOR); | |||||
| RNA_def_property_float_sdna(prop, NULL, "corner_rounding"); | |||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | |||||
| RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.1, 3); | |||||
| RNA_def_property_ui_text(prop, "Corner Rounding", "How much sharp corners will be rounded"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| /* -- Texture Nodes --------------------------------------------------------- */ | /* -- Texture Nodes --------------------------------------------------------- */ | ||||
| static void def_tex_output(StructRNA *srna) | static void def_tex_output(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| RNA_def_struct_sdna_from(srna, "TexNodeOutput", "storage"); | RNA_def_struct_sdna_from(srna, "TexNodeOutput", "storage"); | ||||
| ▲ Show 20 Lines • Show All 2,796 Lines • Show Last 20 Lines | |||||
Consider using PROP_FACTOR as the fields are a factor.