59 {0,
"NONE", 0,
"None",
""},
60 {
TEX_BLEND,
"BLEND", ICON_TEXTURE,
"Blend",
"Procedural - create a ramp texture"},
65 "Procedural - create a cloud-like fractal noise texture"},
70 "Procedural - noise texture distorted by two noise algorithms"},
75 "Allow for images or movies to be used as textures"},
80 "Procedural - color texture based on trigonometric functions"},
85 "Procedural - marble-like noise texture with wave generated bands"},
90 "Procedural - highly flexible fractal noise texture"},
95 "Procedural - random noise, gives a different result every time, for every frame, for every "
97 {
TEX_STUCCI,
"STUCCI", ICON_TEXTURE,
"Stucci",
"Procedural - create a fractal noise texture"},
102 "Procedural - create cell-like patterns based on Worley noise"},
107 "Procedural - wave generated bands or rings, with optional noise"},
116 {
MTEX_MUL,
"MULTIPLY", 0,
"Multiply",
""},
126 {
MTEX_DIFF,
"DIFFERENCE", 0,
"Difference",
""},
127 {
MTEX_SUB,
"SUBTRACT", 0,
"Subtract",
""},
128 {
MTEX_DIV,
"DIVIDE", 0,
"Divide",
""},
210 rna_Texture_update(bmain,
scene,
ptr);
213 static void rna_Color_mapping_update(
Main *
UNUSED(bmain),
325 char name_esc[(
sizeof(mtex->
tex->
id.
name) - 2) * 2];
370 if (cur ==
node->custom1) {
399 tmp.
name =
"Not Specified";
420 static void rna_Texture_use_color_ramp_set(
PointerRNA *
ptr,
bool value)
451 static void rna_ImageTexture_mipmap_set(
PointerRNA *
ptr,
bool value)
468 {
MTEX_FLAT,
"FLAT", 0,
"Flat",
"Map X and Y coordinates directly"},
469 {
MTEX_CUBE,
"CUBE", 0,
"Cube",
"Map using the normal vector"},
470 {
MTEX_TUBE,
"TUBE", 0,
"Tube",
"Map with Z as central axis"},
471 {
MTEX_SPHERE,
"SPHERE", 0,
"Sphere",
"Map with Z as central axis"},
476 {0,
"NONE", 0,
"None",
""},
477 {1,
"X", 0,
"X",
""},
478 {2,
"Y", 0,
"Y",
""},
479 {3,
"Z", 0,
"Z",
""},
616 {0,
"DUMMY", 0,
"Dummy",
""},
623 srna,
"Texture Slot",
"Texture slot defining the mapping and influence of a texture");
637 prop,
"rna_TextureSlot_name_get",
"rna_TextureSlot_name_length",
NULL);
650 prop,
"Offset",
"Fine tune of the texture mapping X, Y and Z locations");
667 "Default color for textures that don't return RGB or when RGB to intensity is enabled");
684 "Value to use for Ref, Spec, Amb, Emit, Alpha, RayMir, TransLu and Hard");
692 prop,
"rna_TextureSlot_output_node_get",
NULL,
"rna_TextureSlot_output_node_itemf");
694 prop,
"Output Node",
"Which output node to use, for node-based textures");
711 prop,
"MIP Map Gaussian filter",
"Use Gauss filter to sample down MIP maps");
726 "Maximum number of samples (higher gives less blur at distant/oblique angles, "
727 "but is also slower)");
735 "Filter Eccentricity",
736 "Maximum eccentricity (higher gives less blur at distant/oblique angles, "
737 "but is also slower)");
743 prop,
"Minimum Filter Size",
"Use Filter Size as a minimal filter value in pixels");
751 prop,
"Filter Size",
"Multiply the filter size used by MIP Map and Interpolation");
760 "Noise algorithm - Blender original: Smooth interpolated noise"},
765 "Noise algorithm - Original Perlin: Smooth interpolated noise"},
770 "Noise algorithm - Improved Perlin: Smooth interpolated noise"},
775 "Noise algorithm - Voronoi F1: Returns distance to the closest feature point"},
780 "Noise algorithm - Voronoi F2: Returns distance to the 2nd closest feature point"},
785 "Noise algorithm - Voronoi F3: Returns distance to the 3rd closest feature point"},
790 "Noise algorithm - Voronoi F4: Returns distance to the 4th closest feature point"},
791 {
TEX_VORONOI_F2F1,
"VORONOI_F2_F1", 0,
"Voronoi F2-F1",
"Noise algorithm - Voronoi F1-F2"},
796 "Noise algorithm - Voronoi Crackle: Voronoi tessellation with sharp edges"},
801 "Noise algorithm - Cell Noise: Square cell tessellation"},
806 {
TEX_NOISESOFT,
"SOFT_NOISE", 0,
"Soft",
"Generate soft noise (smooth transitions)"},
807 {
TEX_NOISEPERL,
"HARD_NOISE", 0,
"Hard",
"Generate hard noise (sharp transitions)"},
856 prop,
"Color",
"Determine whether Noise returns grayscale or RGB values");
872 {
TEX_BAND,
"BANDS", 0,
"Bands",
"Use standard wood texture in bands"},
873 {
TEX_RING,
"RINGS", 0,
"Rings",
"Use wood texture in rings"},
874 {
TEX_BANDNOISE,
"BANDNOISE", 0,
"Band Noise",
"Add noise to standard wood"},
875 {
TEX_RINGNOISE,
"RINGNOISE", 0,
"Ring Noise",
"Add noise to rings"},
880 {
TEX_SIN,
"SIN", 0,
"Sine",
"Use a sine wave to produce bands"},
881 {
TEX_SAW,
"SAW", 0,
"Saw",
"Use a saw wave to produce bands"},
882 {
TEX_TRI,
"TRI", 0,
"Tri",
"Use a triangle wave to produce bands"},
941 {
TEX_SOFT,
"SOFT", 0,
"Soft",
"Use soft marble"},
942 {
TEX_SHARP,
"SHARP", 0,
"Sharp",
"Use more clearly defined marble"},
943 {
TEX_SHARPER,
"SHARPER", 0,
"Sharper",
"Use very clearly defined marble"},
948 {
TEX_SIN,
"SIN", 0,
"Sin",
"Use a sine wave to produce bands"},
949 {
TEX_SAW,
"SAW", 0,
"Saw",
"Use a saw wave to produce bands"},
950 {
TEX_TRI,
"TRI", 0,
"Tri",
"Use a triangle wave to produce bands"},
1040 {
TEX_LIN,
"LINEAR", 0,
"Linear",
"Create a linear progression"},
1041 {
TEX_QUAD,
"QUADRATIC", 0,
"Quadratic",
"Create a quadratic progression"},
1042 {
TEX_EASE,
"EASING", 0,
"Easing",
"Create a progression easing from one step to the next"},
1043 {
TEX_DIAG,
"DIAGONAL", 0,
"Diagonal",
"Create a diagonal progression"},
1044 {
TEX_SPHERE,
"SPHERICAL", 0,
"Spherical",
"Create a spherical progression"},
1049 "Create a quadratic progression in the shape of a sphere"},
1050 {
TEX_RAD,
"RADIAL", 0,
"Radial",
"Create a radial progression"},
1055 {0,
"HORIZONTAL", 0,
"Horizontal",
"No flipping"},
1056 {
TEX_FLIPBLEND,
"VERTICAL", 0,
"Vertical",
"Flip the texture's X and Y axis"},
1083 {
TEX_PLASTIC,
"PLASTIC", 0,
"Plastic",
"Use standard stucci"},
1084 {
TEX_WALLIN,
"WALL_IN", 0,
"Wall In",
"Create Dimples"},
1085 {
TEX_WALLOUT,
"WALL_OUT", 0,
"Wall Out",
"Create Ridges"},
1141 {
TEX_EXTEND,
"EXTEND", 0,
"Extend",
"Extend by repeating edge pixels of the image"},
1142 {
TEX_CLIP,
"CLIP", 0,
"Clip",
"Clip to image size and set exterior pixels as transparent"},
1147 "Clip to cubic-shaped area around the image and set exterior pixels as transparent"},
1148 {
TEX_REPEAT,
"REPEAT", 0,
"Repeat",
"Cause the image to repeat horizontally and vertically"},
1149 {
TEX_CHECKER,
"CHECKER", 0,
"Checker",
"Cause the image to repeat in checker board pattern"},
1177 prop,
"Calculate Alpha",
"Calculate an alpha channel based on RGB values in the image");
1191 prop,
"Extension",
"How the image is extrapolated past its original bounds");
1288 "Parameters defining which layer, pass and frame of the image is displayed");
1304 {
TEX_MFRACTAL,
"MULTIFRACTAL", 0,
"Multifractal",
"Use Perlin noise as a basis"},
1306 "RIDGED_MULTIFRACTAL",
1308 "Ridged Multifractal",
1309 "Use Perlin noise with inflection as a basis"},
1311 "HYBRID_MULTIFRACTAL",
1313 "Hybrid Multifractal",
1314 "Use Perlin noise as a basis, with extended controls"},
1315 {
TEX_FBM,
"FBM", 0,
"fBM",
"Fractal Brownian Motion, use Brownian noise as a basis"},
1316 {
TEX_HTERRAIN,
"HETERO_TERRAIN", 0,
"Hetero Terrain",
"Similar to multifractal"},
1398 {
TEX_DISTANCE,
"DISTANCE", 0,
"Actual Distance",
"sqrt(x*x+y*y+z*z)"},
1404 "The length of the distance in axial directions"},
1405 {
TEX_CHEBYCHEV,
"CHEBYCHEV", 0,
"Chebychev",
"The length of the longest Axial journey"},
1406 {
TEX_MINKOVSKY_HALF,
"MINKOVSKY_HALF", 0,
"Minkowski 1/2",
"Set Minkowski variable to 0.5"},
1407 {
TEX_MINKOVSKY_FOUR,
"MINKOVSKY_FOUR", 0,
"Minkowski 4",
"Set Minkowski variable to 4"},
1412 "Use the Minkowski function to calculate distance "
1413 "(exponent value determines the shape of the boundaries)"},
1419 {
TEX_INTENSITY,
"INTENSITY", 0,
"Intensity",
"Only calculate intensity"},
1420 {
TEX_COL1,
"POSITION", 0,
"Position",
"Color cells by position"},
1424 "Position and Outline",
1425 "Use position plus an outline based on F2-F1"},
1427 "POSITION_OUTLINE_INTENSITY",
1429 "Position, Outline, and Intensity",
1430 "Multiply position and outline by intensity"},
1474 "Algorithm used to calculate distance of sample points to feature points");
1552 srna,
"Texture",
"Texture data-block used by materials, lights, worlds and brushes");
1568 "Set negative texture RGB and intensity values to zero, for some uses "
1569 "like displacement this option can be disabled to get the full range");
1577 "Map the texture intensity to the color ramp. "
1578 "Note that the alpha value is used for image textures, "
1579 "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_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)
size_t size_t char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
size_t size_t char size_t BLI_str_escape(char *__restrict dst, const char *__restrict src, const size_t dst_maxncpy) ATTR_NONNULL()
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
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_tag_update_nodetree(struct Main *bmain, struct bNodeTree *ntree, struct bNode *node)
Read Guarded memory(de)allocation.
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Separate Vector White RGB Map Separate Set Z Dilate Combine Combine Color Channel Split ID Combine Luminance Directional Alpha Distance Hue Movie Ellipse Bokeh View Corner Anti Mix RGB Hue Separate TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC TEX_STUCCI
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume TEX_IMAGE
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Separate Vector White RGB Map Separate Set Z Dilate Combine Combine Color Channel Split ID Combine Luminance Directional Alpha Distance Hue Movie Ellipse Bokeh View Corner Anti Mix RGB Hue Separate TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC TEX_MUSGRAVE
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Separate Vector White RGB Map Separate Set Z Dilate Combine Combine Color Channel Split ID Combine Luminance Directional Alpha Distance Hue Movie Ellipse Bokeh View Corner Anti Mix RGB Hue Separate TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC TEX_CLOUDS
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky TEX_NOISE
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave TEX_VORONOI
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Separate Vector White RGB Map Separate Set Z Dilate Combine Combine Color Channel Split ID Combine Luminance Directional Alpha Distance Hue Movie Ellipse Bokeh View Corner Anti Mix RGB Hue Separate TEX_NODE_PROC TEX_NODE_PROC TEX_MAGIC
StructRNA RNA_MagicTexture
StructRNA RNA_MarbleTexture
StructRNA RNA_BlendTexture
StructRNA RNA_StucciTexture
StructRNA RNA_MusgraveTexture
StructRNA RNA_WoodTexture
StructRNA RNA_DistortedNoiseTexture
StructRNA RNA_VoronoiTexture
StructRNA RNA_NoiseTexture
StructRNA RNA_ImageTexture
StructRNA RNA_CloudsTexture
#define RNA_TRANSLATION_PREC_DEFAULT
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
void RNA_id_pointer_create(ID *id, PointerRNA *r_ptr)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
int RNA_property_collection_lookup_index(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *t_ptr)
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)
char * rna_TextureSlot_path(struct PointerRNA *ptr)
void rna_TextureSlot_update(struct bContext *C, 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)