Go to: Related nodes. Attributes.

the asm version os probably now slower than the revised C version -- so lets eliminate it... -- I.A.

The Granite texture is used to create the appearance of granite or other granite-like stone. The texture simulates a material comprising three different minerals (colors) suspended in a medium (filler).

Used as a bump map, the Granite texture can produce a rough, even, sandpaper-like texture. If used as both bump and color, it can be used to look like the inside surface of a rock that has been broken open.

Aside from the attributes listed here, Granite inherits many other attributes from its parent, Texture3d

In the table below, important attributes are listed with their names shown in bold in the description column.

This node is MP safe

Node nameParentsClassificationMFn typeCompatible function sets
granitetexture3dtexture/3d:drawdb/shader/texture/3d/granitekGranitekBase
kNamedObject
kDependencyNode
kTexture3d
kGranite

Related nodes

layeredTexture, envCube, envSphere, envSky, envBall, envChrome, bump3d, uvChooser, bump2d, texture2d, ramp, file, cloth, water, stencil, checker, fractal, bulge, grid, mountain, texture3d, projection, cloud, crater, leather, stucco, brownian, solidFractal, marble, wood, rock, snow, defaultTextureList, place2dTexture, place3dTexture

Attributes (31)

cellSize, color1, color1B, color1G, color1R, color2, color2B, color2G, color2R, color3, color3B, color3G, color3R, creases, density, fillerColor, fillerColorB, fillerColorG, fillerColorR, mixRatio, randomness, refPointCamera, refPointCameraX, refPointCameraY, refPointCameraZ, refPointObj, refPointObjX, refPointObjY, refPointObjZ, spottyness, threshold

Long name (short name)TypeDefaultFlags
refPointObj (rpo) float30.0, 0.0, 0.0outputinputconnectablehidden
The current reference sample point that has to be shaded
refPointObjX (rox) float0.0outputinputconnectablehidden
The x component of the current reference sample position
refPointObjY (roy) float0.0outputinputconnectablehidden
The y component of the current reference sample position
refPointObjZ (roz) float0.0outputinputconnectablehidden
The z component of the current reference sample position
refPointCamera (rpc) float30.0, 0.0, 0.0outputinputconnectablehidden
The current reference sample point that has to be shaded
refPointCameraX (rcx) float0.0outputinputconnectablehidden
The x component of the current sample position
refPointCameraY (rcy) float0.0outputinputconnectablehidden
The y component of the current sample position
refPointCameraZ (rcz) float0.0outputinputconnectablehidden
The z component of the current sample position
color1 (c1) float30.0, 0.0, 0.0outputinputconnectablestorable
Color1 is the color of one of the minerals comprising the granite texture. There are three different mineral colors, suspended in a filler color.
color1R (c1r) float0.0outputinputconnectablestorablekeyable
The red value of Color 1
color1G (c1g) float0.0outputinputconnectablestorablekeyable
The green value of Color 1
color1B (c1b) float0.0outputinputconnectablestorablekeyable
The blue value of Color 1
color2 (c2) float30.549, 0.784, 0.392outputinputconnectablestorable
Color2 is the color of one of the minerals comprising the granite texture. There are three different mineral colors, suspended in a filler color.
color2R (c2r) float0.0outputinputconnectablestorablekeyable
The red value of Color 2
color2G (c2g) float0.0outputinputconnectablestorablekeyable
The green value of Color 2
color2B (c2b) float0.0outputinputconnectablestorablekeyable
The blue value of Color 2
color3 (c3) float30.627, 0.824, 0.823outputinputconnectablestorable
Color3 is the color of one of the minerals comprising the granite texture. There are three different mineral colors, suspended in a filler color.
color3R (c3r) float0.0outputinputconnectablestorablekeyable
The red value of Color 3
color3G (c3g) float0.0outputinputconnectablestorablekeyable
The green value of Color 3
color3B (c3b) float0.0outputinputconnectablestorablekeyable
The blue value of Color 3
fillerColor (fc) float30.588, 0.294, 0.196outputinputconnectablestorable
Filler Color is the color of the medium in which the three minerals (colors) are suspended. The combination of these colors makes up the granite texture.
fillerColorR (fcr) float0.0outputinputconnectablestorablekeyable
Filler Color red value
fillerColorG (fcg) float0.0outputinputconnectablestorablekeyable
Filler Color green value
fillerColorB (fcb) float0.0outputinputconnectablestorablekeyable
Filler Color blue value
cellSize (cs) float0.15outputinputconnectablestorablekeyable
Cell Size controls the size of the mineral particles suspended in the filler material. Increase this to make the color spots larger.

If the Granite texture is being used as a bump map, then increasing Cell Size makes the bumps look less like sandpaper, and more like cobblestones.

density (dy) float1.0outputinputconnectablestorablekeyable
Density controls how much of the suspended minerals are present in the filler. Decrease Density to make the filler color dominate the texture. Increase Densiry to add more of suspended minerals.

If the Granite texture is being used as a bump map, then low Density values will make it look like a smooth surface with tiny rust-like bumps on it.

mixRatio (mr) float0.5outputinputconnectablestorablekeyable
Mix Ratio controls the relative amounts of each color that are present in the texture. Set it close to 0 to get more of Color1; close to 0.5 to get more of Color2, and close to 1.0 to get more of Color3.
spottyness (s) float0.3outputinputconnectablestorablekeyable
Spottyness controls how random the intensity of the spots of color are in the granite. When Spottyness is 0, all the spots of each color are exactly the same intensity. As you increase spottyness, individual spots may become more or less intense (bright) randomly. When Spottyness is 1.0, the intensity of each spot is completely random.
randomness (ra) float1.0outputinputconnectablestorablekeyable
Randomness controls how the spots of color are arranged relative to one another. Set randomness to 1.0 to get a realistic random distribution of minerals, as would be found in nature. If you set Randomness to 0, all the spots are laid out in a completely regular pattern. This can provide interesting effects when used as a bump map; you can make things like insect eyes, or machine-tooled raspy surfaces.
threshold (th) float0.5outputinputconnectablestorablekeyable
Threshold controls the amount that the three colors used in the texture mix into each other. Use low values of Threshold to make the colors blend more smoothly into one another. Use high values to sharply separate the colors into solid dots.
creases (c) booltrueoutputinputconnectablestorablekeyable
Creases. Turn this on to prevent the color spots from blending into each other at their borders. The effect of this is more noticeable in bump maps than in color maps. Turn off Creases to make the spots smootly diffuse into one another at their edges.