This article's documentation is for anything that uses the Source engine. Click here for more information.

Cable

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)

Cable is a pixel shader available in all Source Source games. It is used for ropes such as those created by the keyframe_rope and move_rope entities.

Parameters

The diffuse texture for the rope.
Should be very small, usually 16x16 to 64x64.
Normal map for the rope.
Most of the vanilla materials use cable/cablenormalmap.
Enables vertex coloring, allowing for more accurate lighting.
Minimum amount of light received. Default 0.1.
Maximum amount of light received. Default 0.3.
Disables backface culling. Default 1.

See also