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

Cable

From Valve Developer Community
Revision as of 11:47, 23 August 2025 by THE OWL (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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/move_rope entities.

Parameters

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

See also