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 2,940 Lines • ▼ Show 20 Lines | |||||
| static EnumPropertyItem node_ycc_items[] = { | static EnumPropertyItem node_ycc_items[] = { | ||||
| { 0, "ITUBT601", 0, "ITU 601", ""}, | { 0, "ITUBT601", 0, "ITU 601", ""}, | ||||
| { 1, "ITUBT709", 0, "ITU 709", ""}, | { 1, "ITUBT709", 0, "ITU 709", ""}, | ||||
| { 2, "JFIF", 0, "Jpeg", ""}, | { 2, "JFIF", 0, "Jpeg", ""}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| static EnumPropertyItem node_glossy_items[] = { | static EnumPropertyItem node_glossy_items[] = { | ||||
| {SHD_GLOSSY_SHARP, "SHARP", 0, "Sharp", ""}, | {SHD_GLOSSY_SHARP, "SHARP", 0, "Sharp", ""}, | ||||
| {SHD_GLOSSY_BECKMANN, "BECKMANN", 0, "Beckmann", ""}, | {SHD_GLOSSY_BECKMANN, "BECKMANN", 0, "Beckmann", ""}, | ||||
| {SHD_GLOSSY_GGX, "GGX", 0, "GGX", ""}, | {SHD_GLOSSY_GGX, "GGX", 0, "GGX", ""}, | ||||
| {SHD_GLOSSY_ASHIKHMIN_SHIRLEY, "ASHIKHMIN_SHIRLEY", 0, "Ashikhmin-Shirley", ""}, | |||||
| {0, NULL, 0, NULL, NULL} | |||||
| }; | |||||
| static EnumPropertyItem node_glass_items[] = { | |||||
| {SHD_GLOSSY_SHARP, "SHARP", 0, "Sharp", ""}, | |||||
| {SHD_GLOSSY_BECKMANN, "BECKMANN", 0, "Beckmann", ""}, | |||||
| {SHD_GLOSSY_GGX, "GGX", 0, "GGX", ""}, | |||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| static EnumPropertyItem node_toon_items[] = { | static EnumPropertyItem node_toon_items[] = { | ||||
| {SHD_TOON_DIFFUSE, "DIFFUSE", 0, "Diffuse", ""}, | {SHD_TOON_DIFFUSE, "DIFFUSE", 0, "Diffuse", ""}, | ||||
| {SHD_TOON_GLOSSY, "GLOSSY", 0, "Glossy", ""}, | {SHD_TOON_GLOSSY, "GLOSSY", 0, "Glossy", ""}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 734 Lines • ▼ Show 20 Lines | static void def_glossy(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "distribution", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "distribution", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "custom1"); | RNA_def_property_enum_sdna(prop, NULL, "custom1"); | ||||
| RNA_def_property_enum_items(prop, node_glossy_items); | RNA_def_property_enum_items(prop, node_glossy_items); | ||||
| RNA_def_property_ui_text(prop, "Distribution", ""); | RNA_def_property_ui_text(prop, "Distribution", ""); | ||||
| 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_glass(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| prop = RNA_def_property(srna, "distribution", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "custom1"); | |||||
| RNA_def_property_enum_items(prop, node_glass_items); | |||||
| RNA_def_property_ui_text(prop, "Distribution", ""); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| static void def_toon(StructRNA *srna) | static void def_toon(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| prop = RNA_def_property(srna, "component", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "component", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "custom1"); | RNA_def_property_enum_sdna(prop, NULL, "custom1"); | ||||
| RNA_def_property_enum_items(prop, node_toon_items); | RNA_def_property_enum_items(prop, node_toon_items); | ||||
| RNA_def_property_ui_text(prop, "Component", ""); | RNA_def_property_ui_text(prop, "Component", ""); | ||||
| ▲ Show 20 Lines • Show All 4,091 Lines • Show Last 20 Lines | |||||