Fabric

 
 
 

Category: Texture Generators

Shader Family: Texture

Output: Color

Lets you create the impression of a woven cloth or fabric based on a coordinate input. This shader can look quite realistic when used as both a color and a bump map. 2D Fabric can be used to simulate many types of cloth by manipulating the parameters listed below.

Name

The shader's name. Enter any name you like, or leave the default.

Coordinates

Defines the U, V, and Z coordinates of the texture.

Width Variation

Applies random variations to the width of the threads, which makes the fabric seem more uneven and natural.

If the Width Variation = 0.1 and the Thread Width = 0.7, then the true thread width will vary between 0.6 and 0.7.

Brightness Variation

Adds a random variation in the brightness of the thread. This also helps make the fabric appear more natural.

U Thread Color

Defines the color of the U warp and weft threads. The thread colors then blend into the gap color to achieve a more rounded look. If this shader is applied as a bump map, set the thread colors to a non-0 alpha value and the gap color to a 0 alpha value for best results.

V Thread Color

Defines the color of the V warp and weft threads. The thread colors then blend into the gap color to achieve a more rounded look. If this shader is applied as a bump map, set the thread colors to a non-0 alpha value and the gap color to a 0 alpha value for best results.

Gap Color

Defines the color of the gap between the threads.

U, V Thread Width

Defines the width of the U and V horizontal and vertical threads. If the thread width is set to 1, the fabric texture will be saturated with threads and the gap won't show. If the width is set to 0, the threads vanish and simply leave the gap color.

U, V Wave

Causes the U and V threads to become wavy, generating a better flow and making them less rigid and more realistic.

Randomness

Defines how wrinkly the threads will be. This parameter simulates an old, worn garment. This can also helps in lessening the aliasing problem when viewing the texture from a distance.

Leaving this parameter at 0 will reduce rendering time.

Render Tree Usage

Use this shader to drive a parameter with a texture effect anywhere in a render tree. This shader generates a texture that can be used as a color, a weight value in a mixer shader, or to drive any Surface shader parameter.

Connect a Texture Space Controller shader to drive the Coordinate value of this shader.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License