Use the V-Ray Cloth texture in SketchUp to create fabric with a loose or tight weave.
Overview
The Cloth texture map generates a procedural cloth texture. You can adjust the weave density and random weave distortion, and connect its channels to texture maps.


UI paths
||V-Ray Asset Editor|| > Textures (right-click) > Cloth
||V-Ray Asset Editor|| > Create Asset (left-click) > Textures > Cloth
Parameters
Color Gap controls the colour of the gaps between fabric fibres. A selected texture overrides the colour while the texture checkbox is enabled.
Color U controls the horizontal thread colour. You can use a texture map when the checkbox is enabled.
Color V controls the vertical thread colour. See the U Color, V Color and Gap Color example below. You can use a texture map when the checkbox is enabled.
Random Shade uses noise to vary the texture brightness. You can use a texture map when the checkbox is enabled.
Width U controls the horizontal thread width. You can use a texture map when the checkbox is enabled.
Width V controls the vertical thread width. See the U Width and V Width example below. You can use a texture map when the checkbox is enabled.
Random Width uses noise to vary the fibre width. You can use a texture map when the checkbox is enabled.

Example: U Color, V Color and Gap Color

Gap Color
=
Green
U Color:
Pink;
V Color
=
Yellow

Gap Color
=
Black
U Color:
Blue;
V Color
=
Red
Example: U Width and V Width

U Width
= 0.75
,
V Width
= 0.75

U Width
=
0.75,
V Width
=
0.25

U Width
=
0.25,
V Width
=
0.75

U Width: =
0.25,
V Width
=
0.25
Wave
Wave U controls the amount of wave in the horizontal direction. You can use a texture map when the checkbox is enabled.
Wave V controls the amount of wave in the vertical direction. See the U Wave and V Wave example below. You can use a texture map when the checkbox is enabled.
Random Wave uses noise to vary the waves. See the Random Wave example below. You can use a texture map when the checkbox is enabled.

Example: U Wave and V Wave

U Wave
=
0,
V Wave
=
0

U Wave
=
0.25,
V Wave
=
0

U Wave
=
0.25,
V Wave
=
0.25

U Wave
=
0.25,
V Wave
=
0.25,
Randomness
= 1
Example: Random Wave

Random Wave
=
0

Random Wave
=
0.1

Random Wave
=
0.2

Random Wave
=
0.2,
Width Spread
=
0.25
Color Manipulation
Invert Texture inverts the RGB texture values.
Alpha from Intensity uses the texture's RGB intensity or luminance as the alpha channel.
Color Gain adjusts the texture colour by multiplying its RGB values by the RGB values you specify here. You can also assign a texture map.
Color Offset adjusts the texture colour by adding the RGB values you specify here to the texture's RGB values. You can also assign a texture map.
Default Color sets the colour for polygons without valid UVs. If the map is not tiled, it also sets the colour outside the texture square. A selected texture overrides the colour while the texture checkbox is enabled.

Multipliers
Mode sets the multiplication mode for the colours.
Multiply uses black for blending.
Blend Amount uses the colour specified in the colour slot for blending.
Gap Color blends between a colour and a texture, if you specify one.
Color U blends between a colour and a texture, if you specify one.
Color V blends between a colour and a texture, if you specify one.

Texture Placement
Type controls how the texture is positioned on the geometry.
2D (UV Channel) uses the object's UV coordinates.
Environment applies when the map is connected to an Environment slot or a Dome light.
Texture Remapping uses UVW values from a colour texture or separate greyscale textures.
Mapping Source uses an external UV placement source.
2D (UV Channel)
UV Channel/Set sets the index of the mapping channel data to use. A value of 1 uses the first available channel.
Repeat U/V sets how many times the texture repeats within the 0 to 1 UV square.
Lock U/V Repeat locks the U/V Repeat.
Offset U/V controls the texture offset in the U and V directions.
Rotate rotates the texture in degrees.
Tile U/V tiles the texture in the U and V directions. When disabled, it uses the Default texture colour outside the 0 to 1 UV square. Find the default colour under Parameters > Color Manipulation.
Mirror U/V mirrors the texture separately in the U and V directions. It cuts the texture in half and flips one side vertically or horizontally. Use it to avoid seams when repeating textures that do not tile.

2D (UV Channel) parameters
Environment
Mapping sets the texture type and shape.
Angular
Cubic
Spherical
Spherical Inverted
Mirror Ball
Screen
Rotate H rotates the environment sphere horizontally.
Flip H flips the environment sphere horizontally.
Rotate V rotates the environment sphere vertically.
Flip V flips the environment sphere vertically. It is active only in Spherical Mapping.
Ground enables ground projection of the texture.
Position X/Y/Z offsets the ground projection along the X/Y/Z axis.
Radius sets the projection radius. Use it to control the projection scale.
For 2d Transformation, see the 2D (UV channel) parameters.

Environment parameters
Texture Remapping
Mode sets whether to use a single texture or multiple textures to remap the U and V texture coordinates.
UV uses the input texture's Red channel for the U sampling coordinate and its Green channel for the V coordinate.
U uses this texture's value for the U sampling coordinate.
V uses this texture's value for the V sampling coordinate.

Texture Remapping parameters
Mapping Source
UV Placement Source sets the external UV placement source for the texture.

Mapping placement parameters
Notes
- Use the same value for U Wave and V Wave to create diagonal effects. Use higher values in the Width Spread channel to create a loose weave.