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 name Parents Classification MFn type Compatible function sets
cloth texture2d texture/2d kCloth kBase
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) Type Default Flags
gapColor (gc) float3 0.0, 0.0, 0.0 outputinputconnectablestorable
Gap Color is the color of the spaces between the threads of the cloth.
gapColorR (gcr) float 0.0 outputinputconnectablestorablekeyable
The red component of Gap Color
gapColorG (gcg) float 0.0 outputinputconnectablestorablekeyable
The green component of Gap Color
gapColorB (gcb) float 0.0 outputinputconnectablestorablekeyable
The blue component of Gap Color
uColor (uc) float3 1.0, 1.0, 1.0 outputinputconnectablestorable
U Color is the color of the threads that run in the texture's "U" direction.
uColorR (ucr) float 0.0 outputinputconnectablestorablekeyable
The red component of U Color
uColorG (ucg) float 0.0 outputinputconnectablestorablekeyable
The green component of U Color
uColorB (ucb) float 0.0 outputinputconnectablestorablekeyable
The blue component of U Color
vColor (vc) float3 0.5, 0.5, 0.5 outputinputconnectablestorable
V Color is the color of the threads that run in the texture's "V" direction.
vColorR (vcr) float 0.0 outputinputconnectablestorablekeyable
The red component of V Color
vColorG (vcg) float 0.0 outputinputconnectablestorablekeyable
The green component of V Color
vColorB (vcb) float 0.0 outputinputconnectablestorablekeyable
The blue component of V Color
uWidth (uwi) float 0.75 outputinputconnectablestorablekeyable
U Width is the width (thickness) of the threads that run in the texture's "U" direction.
vWidth (vwi) float 0.75 outputinputconnectablestorablekeyable
V Width is the width (thickness) of the threads that run in the texture's "V" direction.
uWave (uwa) float 0.0 outputinputconnectablestorablekeyable
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) float 0.0 outputinputconnectablestorablekeyable
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) float 0.0 outputinputconnectablestorablekeyable
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) float 0.0 outputinputconnectablestorablekeyable
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) float 0.0 outputinputconnectablestorablekeyable
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.