Go to: Related nodes. Attributes.

The Cloth texture simulates a woven fabric. You can control the color and width of the threads, the size of the gap between them, and the randomness of the weaving.

Aside from the attributes listed here, Checker inherits many other attributes from its parent node, Texture2d.

In the table below, important attributes have their names listed in bold in the description column.

This node is MP safe

Node nameParentsClassificationMFn typeCompatible function sets
clothtexture2dtexture/2d:drawdb/shader/texture/2d/clothkClothkBase
kNamedObject
kDependencyNode
kTexture2d
kCloth

Related nodes

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

Attributes (19)

brightSpread, gapColor, gapColorB, gapColorG, gapColorR, randomness, uColor, uColorB, uColorG, uColorR, uWave, uWidth, vColor, vColorB, vColorG, vColorR, vWave, vWidth, widthSpread

Long name (short name)TypeDefaultFlags
gapColor (gc) float30.0, 0.0, 0.0outputinputconnectablestorable
Gap Color is the color of the spaces between the threads of the cloth.
gapColorR (gcr) float0.0outputinputconnectablestorablekeyable
The red component of Gap Color
gapColorG (gcg) float0.0outputinputconnectablestorablekeyable
The green component of Gap Color
gapColorB (gcb) float0.0outputinputconnectablestorablekeyable
The blue component of Gap Color
uColor (uc) float31.0, 1.0, 1.0outputinputconnectablestorable
U Color is the color of the threads that run in the texture's "U" direction.
uColorR (ucr) float0.0outputinputconnectablestorablekeyable
The red component of U Color
uColorG (ucg) float0.0outputinputconnectablestorablekeyable
The green component of U Color
uColorB (ucb) float0.0outputinputconnectablestorablekeyable
The blue component of U Color
vColor (vc) float30.5, 0.5, 0.5outputinputconnectablestorable
V Color is the color of the threads that run in the texture's "V" direction.
vColorR (vcr) float0.0outputinputconnectablestorablekeyable
The red component of V Color
vColorG (vcg) float0.0outputinputconnectablestorablekeyable
The green component of V Color
vColorB (vcb) float0.0outputinputconnectablestorablekeyable
The blue component of V Color
uWidth (uwi) float0.75outputinputconnectablestorablekeyable
U Width is the width (thickness) of the threads that run in the texture's "U" direction.
vWidth (vwi) float0.75outputinputconnectablestorablekeyable
V Width is the width (thickness) of the threads that run in the texture's "V" direction.
uWave (uwa) float0.0outputinputconnectablestorablekeyable
U Wave controls how much the threads in the texture's "U" direction appear to bend to go around the threads in the "V" direction.

Increasing this value gives the cloth a rougher, more 3-dimensional appearance.

vWave (vwa) float0.0outputinputconnectablestorablekeyable
V Wave controls how much the threads in the texture's "V" direction appear to bend to go around the threads in the "U" direction.

Increasing this value gives the cloth a rougher, more 3-dimensional appearance.

randomness (r) float0.0outputinputconnectablestorablekeyable
Randomness can be used to smear the pattern in both the "U" and "V" directions. This can be used to create a more irregular, naturalistic looking cloth.

A small amount of Randomness can prevent aliasing and moiré patterns that can occur when a very fine cloth texture is being used.

widthSpread (ws) float0.0outputinputconnectablestorablekeyable
Width Spread randomly makes some threads narrower than the value specified by the U Width and V Width attributes. The widths of the threads will vary along their lengths.

This attribute specifies the maximum amount that can be subtracted from a thread width.

brightSpread (bs) float0.0outputinputconnectablestorablekeyable
Brightness Spread randomly makes some threads darker than the value specified by the U Color and V Color attributes. The brightness of the threads will vary along their lengths.

This attribute specifies the maximum amount that can be subtracted from the brightness of the threads.