46 {0,
"NONE", 0,
"None",
""},
47 {
TEX_BLEND,
"BLEND", ICON_TEXTURE,
"Blend",
"Procedural - create a ramp texture"},
52 "Procedural - create a cloud-like fractal noise texture"},
57 "Procedural - noise texture distorted by two noise algorithms"},
62 "Allow for images or movies to be used as textures"},
67 "Procedural - color texture based on trigonometric functions"},
72 "Procedural - marble-like noise texture with wave generated bands"},
77 "Procedural - highly flexible fractal noise texture"},
82 "Procedural - random noise, gives a different result every time, for every frame, for every "
84 {
TEX_STUCCI,
"STUCCI", ICON_TEXTURE,
"Stucci",
"Procedural - create a fractal noise texture"},
89 "Procedural - create cell-like patterns based on Worley noise"},
94 "Procedural - wave generated bands or rings, with optional noise"},
103 {
MTEX_MUL,
"MULTIPLY", 0,
"Multiply",
""},
113 {
MTEX_DIFF,
"DIFFERENCE", 0,
"Difference",
""},
114 {
MTEX_SUB,
"SUBTRACT", 0,
"Subtract",
""},
115 {
MTEX_DIV,
"DIVIDE", 0,
"Divide",
""},
149 return &RNA_BlendTexture;
151 return &RNA_CloudsTexture;
153 return &RNA_DistortedNoiseTexture;
155 return &RNA_ImageTexture;
157 return &RNA_MagicTexture;
159 return &RNA_MarbleTexture;
161 return &RNA_MusgraveTexture;
163 return &RNA_NoiseTexture;
165 return &RNA_StucciTexture;
167 return &RNA_VoronoiTexture;
169 return &RNA_WoodTexture;
206 if (
node->storage == texmap) {
212 rna_Texture_update(bmain,
scene,
ptr);
215 static void rna_Color_mapping_update(
Main *
UNUSED(bmain),
327 char name_esc[(
sizeof(mtex->
tex->
id.
name) - 2) * 2];
372 if (cur ==
node->custom1) {
401 tmp.
name =
"Not Specified";
422 static void rna_Texture_use_color_ramp_set(
PointerRNA *
ptr,
bool value)
453 static void rna_ImageTexture_mipmap_set(
PointerRNA *
ptr,
bool value)
470 {
MTEX_FLAT,
"FLAT", 0,
"Flat",
"Map X and Y coordinates directly"},
471 {
MTEX_CUBE,
"CUBE", 0,
"Cube",
"Map using the normal vector"},
472 {
MTEX_TUBE,
"TUBE", 0,
"Tube",
"Map with Z as central axis"},
473 {
MTEX_SPHERE,
"SPHERE", 0,
"Sphere",
"Map with Z as central axis"},
478 {0,
"NONE", 0,
"None",
""},
479 {1,
"X", 0,
"X",
""},
480 {2,
"Y", 0,
"Y",
""},
481 {3,
"Z", 0,
"Z",
""},
618 {0,
"DUMMY", 0,
"Dummy",
""},
625 srna,
"Texture Slot",
"Texture slot defining the mapping and influence of a texture");
639 prop,
"rna_TextureSlot_name_get",
"rna_TextureSlot_name_length",
NULL);
652 prop,
"Offset",
"Fine tune of the texture mapping X, Y and Z locations");
669 "Default color for textures that don't return RGB or when RGB to intensity is enabled");
686 "Value to use for Ref, Spec, Amb, Emit, Alpha, RayMir, TransLu and Hard");
694 prop,
"rna_TextureSlot_output_node_get",
NULL,
"rna_TextureSlot_output_node_itemf");
696 prop,
"Output Node",
"Which output node to use, for node-based textures");
713 prop,
"MIP Map Gaussian filter",
"Use Gauss filter to sample down MIP maps");
728 "Maximum number of samples (higher gives less blur at distant/oblique angles, "
729 "but is also slower)");
737 "Filter Eccentricity",
738 "Maximum eccentricity (higher gives less blur at distant/oblique angles, "
739 "but is also slower)");
745 prop,
"Minimum Filter Size",
"Use Filter Size as a minimal filter value in pixels");
753 prop,
"Filter Size",
"Multiply the filter size used by MIP Map and Interpolation");
762 "Noise algorithm - Blender original: Smooth interpolated noise"},
767 "Noise algorithm - Original Perlin: Smooth interpolated noise"},
772 "Noise algorithm - Improved Perlin: Smooth interpolated noise"},
777 "Noise algorithm - Voronoi F1: Returns distance to the closest feature point"},
782 "Noise algorithm - Voronoi F2: Returns distance to the 2nd closest feature point"},
787 "Noise algorithm - Voronoi F3: Returns distance to the 3rd closest feature point"},
792 "Noise algorithm - Voronoi F4: Returns distance to the 4th closest feature point"},
793 {
TEX_VORONOI_F2F1,
"VORONOI_F2_F1", 0,
"Voronoi F2-F1",
"Noise algorithm - Voronoi F1-F2"},
798 "Noise algorithm - Voronoi Crackle: Voronoi tessellation with sharp edges"},
803 "Noise algorithm - Cell Noise: Square cell tessellation"},
808 {
TEX_NOISESOFT,
"SOFT_NOISE", 0,
"Soft",
"Generate soft noise (smooth transitions)"},
809 {
TEX_NOISEPERL,
"HARD_NOISE", 0,
"Hard",
"Generate hard noise (sharp transitions)"},
858 prop,
"Color",
"Determine whether Noise returns grayscale or RGB values");
874 {
TEX_BAND,
"BANDS", 0,
"Bands",
"Use standard wood texture in bands"},
875 {
TEX_RING,
"RINGS", 0,
"Rings",
"Use wood texture in rings"},
876 {
TEX_BANDNOISE,
"BANDNOISE", 0,
"Band Noise",
"Add noise to standard wood"},
877 {
TEX_RINGNOISE,
"RINGNOISE", 0,
"Ring Noise",
"Add noise to rings"},
882 {
TEX_SIN,
"SIN", 0,
"Sine",
"Use a sine wave to produce bands"},
883 {
TEX_SAW,
"SAW", 0,
"Saw",
"Use a saw wave to produce bands"},
884 {
TEX_TRI,
"TRI", 0,
"Tri",
"Use a triangle wave to produce bands"},
943 {
TEX_SOFT,
"SOFT", 0,
"Soft",
"Use soft marble"},
944 {
TEX_SHARP,
"SHARP", 0,
"Sharp",
"Use more clearly defined marble"},
945 {
TEX_SHARPER,
"SHARPER", 0,
"Sharper",
"Use very clearly defined marble"},
950 {
TEX_SIN,
"SIN", 0,
"Sin",
"Use a sine wave to produce bands"},
951 {
TEX_SAW,
"SAW", 0,
"Saw",
"Use a saw wave to produce bands"},
952 {
TEX_TRI,
"TRI", 0,
"Tri",
"Use a triangle wave to produce bands"},
1042 {
TEX_LIN,
"LINEAR", 0,
"Linear",
"Create a linear progression"},
1043 {
TEX_QUAD,
"QUADRATIC", 0,
"Quadratic",
"Create a quadratic progression"},
1044 {
TEX_EASE,
"EASING", 0,
"Easing",
"Create a progression easing from one step to the next"},
1045 {
TEX_DIAG,
"DIAGONAL", 0,
"Diagonal",
"Create a diagonal progression"},
1046 {
TEX_SPHERE,
"SPHERICAL", 0,
"Spherical",
"Create a spherical progression"},
1051 "Create a quadratic progression in the shape of a sphere"},
1052 {
TEX_RAD,
"RADIAL", 0,
"Radial",
"Create a radial progression"},
1057 {0,
"HORIZONTAL", 0,
"Horizontal",
"No flipping"},
1058 {
TEX_FLIPBLEND,
"VERTICAL", 0,
"Vertical",
"Flip the texture's X and Y axis"},
1085 {
TEX_PLASTIC,
"PLASTIC", 0,
"Plastic",
"Use standard stucci"},
1086 {
TEX_WALLIN,
"WALL_IN", 0,
"Wall In",
"Create Dimples"},
1087 {
TEX_WALLOUT,
"WALL_OUT", 0,
"Wall Out",
"Create Ridges"},
1143 {
TEX_EXTEND,
"EXTEND", 0,
"Extend",
"Extend by repeating edge pixels of the image"},
1144 {
TEX_CLIP,
"CLIP", 0,
"Clip",
"Clip to image size and set exterior pixels as transparent"},
1149 "Clip to cubic-shaped area around the image and set exterior pixels as transparent"},
1150 {
TEX_REPEAT,
"REPEAT", 0,
"Repeat",
"Cause the image to repeat horizontally and vertically"},
1151 {
TEX_CHECKER,
"CHECKER", 0,
"Checker",
"Cause the image to repeat in checker board pattern"},
1179 prop,
"Calculate Alpha",
"Calculate an alpha channel based on RGB values in the image");
1193 prop,
"Extension",
"How the image is extrapolated past its original bounds");
1290 "Parameters defining which layer, pass and frame of the image is displayed");
1306 {
TEX_MFRACTAL,
"MULTIFRACTAL", 0,
"Multifractal",
"Use Perlin noise as a basis"},
1308 "RIDGED_MULTIFRACTAL",
1310 "Ridged Multifractal",
1311 "Use Perlin noise with inflection as a basis"},
1313 "HYBRID_MULTIFRACTAL",
1315 "Hybrid Multifractal",
1316 "Use Perlin noise as a basis, with extended controls"},
1317 {
TEX_FBM,
"FBM", 0,
"fBM",
"Fractal Brownian Motion, use Brownian noise as a basis"},
1318 {
TEX_HTERRAIN,
"HETERO_TERRAIN", 0,
"Hetero Terrain",
"Similar to multifractal"},
1400 {
TEX_DISTANCE,
"DISTANCE", 0,
"Actual Distance",
"sqrt(x*x+y*y+z*z)"},
1406 "The length of the distance in axial directions"},
1407 {
TEX_CHEBYCHEV,
"CHEBYCHEV", 0,
"Chebychev",
"The length of the longest Axial journey"},
1408 {
TEX_MINKOVSKY_HALF,
"MINKOVSKY_HALF", 0,
"Minkowski 1/2",
"Set Minkowski variable to 0.5"},
1409 {
TEX_MINKOVSKY_FOUR,
"MINKOVSKY_FOUR", 0,
"Minkowski 4",
"Set Minkowski variable to 4"},
1414 "Use the Minkowski function to calculate distance "
1415 "(exponent value determines the shape of the boundaries)"},
1421 {
TEX_INTENSITY,
"INTENSITY", 0,
"Intensity",
"Only calculate intensity"},
1422 {
TEX_COL1,
"POSITION", 0,
"Position",
"Color cells by position"},
1426 "Position and Outline",
1427 "Use position plus an outline based on F2-F1"},
1429 "POSITION_OUTLINE_INTENSITY",
1431 "Position, Outline, and Intensity",
1432 "Multiply position and outline by intensity"},
1476 "Algorithm used to calculate distance of sample points to feature points");
1554 srna,
"Texture",
"Texture data-block used by materials, lights, worlds and brushes");
1570 "Set negative texture RGB and intensity values to zero, for some uses "
1571 "like displacement this option can be disabled to get the full range");
1579 "Map the texture intensity to the color ramp. "
1580 "Note that the alpha value is used for image textures, "
1581 "enable \"Calculate Alpha\" for images without an alpha channel");
struct ColorBand * BKE_colorband_add(bool rangetype)
struct Scene * CTX_data_scene(const bContext *C)
struct ViewLayer * CTX_data_view_layer(const bContext *C)
struct Main * CTX_data_main(const bContext *C)
void BKE_ntree_update_tag_node_property(struct bNodeTree *ntree, struct bNode *node)
void BKE_paint_invalidate_overlay_tex(struct Scene *scene, struct ViewLayer *view_layer, const struct Tex *tex)
void BKE_texture_mapping_init(struct TexMapping *texmap)
void BKE_texture_type_set(struct Tex *tex, int type)
#define LISTBASE_FOREACH(type, var, list)
size_t size_t char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
size_t size_t char size_t BLI_str_escape(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL()
void DEG_id_tag_update(struct ID *id, int flag)
void DEG_relations_tag_update(struct Main *bmain)
Object is a sort of wrapper for general info.
#define TEX_MINKOVSKY_FOUR
#define TEX_DISTANCE_SQUARED
#define TEX_MINKOVSKY_HALF
#define TEX_VORONOI_CRACKLE
#define COLORMAP_USE_RAMP
void ED_node_texture_default(const struct bContext *C, struct Tex *tex)
void ED_node_tree_propagate_change(const struct bContext *C, struct Main *bmain, struct bNodeTree *ntree)
Read Guarded memory(de)allocation.
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise TEX_VORONOI
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture TEX_NOISE
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block TEX_IMAGE
#define RNA_ENUM_ITEM_SEPR
#define RNA_TRANSLATION_PREC_DEFAULT
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
void RNA_id_pointer_create(ID *id, PointerRNA *r_ptr)
int RNA_property_collection_lookup_index(PointerRNA *ptr, PropertyRNA *prop, const PointerRNA *t_ptr)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
void rna_def_animdata_common(StructRNA *srna)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_array(PropertyRNA *prop, int length)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void RNA_def_struct_name_property(struct StructRNA *srna, struct PropertyRNA *prop)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void rna_TextureSlot_update(struct bContext *C, struct PointerRNA *ptr)
char * rna_TextureSlot_path(const struct PointerRNA *ptr)
void RNA_api_texture(struct StructRNA *srna)
const EnumPropertyItem rna_enum_mapping_type_items[]
static void rna_def_texture_wood(BlenderRNA *brna)
static void rna_def_texture_magic(BlenderRNA *brna)
static const EnumPropertyItem blend_type_items[]
static void rna_def_colormapping(BlenderRNA *brna)
static const EnumPropertyItem prop_noise_basis_items[]
static void rna_def_texture_musgrave(BlenderRNA *brna)
static void rna_def_texture_clouds(BlenderRNA *brna)
static void rna_def_texture_blend(BlenderRNA *brna)
static void rna_def_texture_distorted_noise(BlenderRNA *brna)
static const EnumPropertyItem texture_filter_items[]
static void rna_def_texture_marble(BlenderRNA *brna)
static void rna_def_texture(BlenderRNA *brna)
static void rna_def_filter_common(StructRNA *srna)
static void rna_def_mtex(BlenderRNA *brna)
static const EnumPropertyItem prop_noise_type[]
static void rna_def_texture_noise(BlenderRNA *brna)
void RNA_def_texture(BlenderRNA *brna)
static void rna_def_texmapping(BlenderRNA *brna)
static void rna_def_texture_voronoi(BlenderRNA *brna)
static void rna_def_texture_image(BlenderRNA *brna)
const EnumPropertyItem rna_enum_texture_type_items[]
static void rna_def_texture_stucci(BlenderRNA *brna)
struct bNodeTree * nodetree
void WM_main_add_notifier(unsigned int type, void *reference)