Index: rna_texture.c =================================================================== --- rna_texture.c (revision 19388) +++ rna_texture.c (working copy) @@ -288,6 +288,20 @@ StructRNA *srna; PropertyRNA *prop; + /* Needs to be Changed?*/ + static EnumPropertyItem prop_clouds_noise_type[] = { + {TEX_NOISESOFT, "SOFT_NOISE", "Soft Noise", ""}, + {TEX_NOISEPERL, "HARD_NOISE", "Hard Noise", ""}, + {0, NULL, NULL, NULL} + }; + + static EnumPropertyItem prop_clouds_stype[] = { + {TEX_DEFAULT, "DEFAULT", "Default", ""}, + {TEX_COLOR, "COLOR", "Color", ""}, + {0, NULL, NULL, NULL} + }; + /*End Needs to be Changed? */ + srna= RNA_def_struct(brna, "CloudsTexture", "Texture"); RNA_def_struct_ui_text(srna, "Clouds Texture", "Procedural noise texture."); RNA_def_struct_sdna(srna, "Tex"); @@ -296,19 +310,36 @@ RNA_def_property_float_sdna(prop, NULL, "noisesize"); RNA_def_property_range(prop, 0.0001, FLT_MAX); RNA_def_property_ui_range(prop, 0.0001, 2, 10, 2); - RNA_def_property_ui_text(prop, "Noise Size", ""); + RNA_def_property_ui_text(prop, "Noise Size", "Sets scaling for noise input"); + prop= RNA_def_property(srna, "noise_depth", PROP_INT, PROP_NONE); + RNA_def_property_int_sdna(prop, NULL, "noisedepth"); + RNA_def_property_range(prop, 0, INT_MAX); + RNA_def_property_ui_range(prop, 0, 6, 0, 2); + RNA_def_property_ui_text(prop, "Noise Depth", "Sets the depth of the cloud calculation"); + + prop= RNA_def_property(srna, "noise_basis", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "noisebasis"); RNA_def_property_enum_items(prop, prop_noise_basis_items); - RNA_def_property_ui_text(prop, "Noise Basis", ""); + RNA_def_property_ui_text(prop, "Noise Basis", "Sets the noise basis used for turbulence"); + prop= RNA_def_property(srna, "noise_type", PROP_ENUM, PROP_NONE); + RNA_def_property_enum_sdna(prop, NULL, "noisetype"); + RNA_def_property_enum_items(prop, prop_clouds_noise_type); + RNA_def_property_ui_text(prop, "Noise Type", ""); + + prop= RNA_def_property(srna, "stype", PROP_ENUM, PROP_NONE); + RNA_def_property_enum_sdna(prop, NULL, "stype"); + RNA_def_property_enum_items(prop, prop_clouds_stype); + RNA_def_property_ui_text(prop, "Color", ""); + prop= RNA_def_property(srna, "nabla", PROP_FLOAT, PROP_NONE); RNA_def_property_range(prop, 0.001, 0.1); RNA_def_property_ui_range(prop, 0.001, 0.1, 1, 2); RNA_def_property_ui_text(prop, "Nabla", "Size of derivative offset used for calculating normal."); - /* XXX todo: noise depth, default/color, hard/soft */ + /* XXX needs to be changed?: color/default hard/soft */ } static void rna_def_texture(BlenderRNA *brna)