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

Cable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎See also: clean up, replaced: See Also → See also)
mNo edit summary
Line 2: Line 2:
{{this is a|pixel shader|name=Cable}} It is used for [[Cables and Ropes|ropes]] such as those created by the <code>[[keyframe_rope]]</code> and <code>[[move_rope]]</code> entities.
{{this is a|pixel shader|name=Cable}} It is used for [[Cables and Ropes|ropes]] such as those created by the <code>[[keyframe_rope]]</code> and <code>[[move_rope]]</code> entities.
==Parameters==
==Parameters==
{{MatParam|[[$basetexture]]|texture|The texture for the rope. Should be very small, usually 16x16 to 64x64.}}
{{MatParam|$basetexture|texture|The texture for the rope. Should be very small, usually 16x16 to 64x64.}}
{{MatParam|[[$bumpmap]]|texture|Bumpmap for the rope. Default <code>cable/cablenormalmap</code>.}}
{{MatParam|$bumpmap|texture|Bumpmap for the rope. Default <code>cable/cablenormalmap</code>.}}
{{MatParam|[[$vertexcolor]]|bool|{{Todo|See [[$vertexcolor]]. Default <code>1</code>.}}}}
{{MatParam|$vertexcolor|bool|{{Todo|See [[$vertexcolor]]. Default <code>1</code>.}}}}
{{MatParam|$MinLight|normal|Minimum amount of light received. Default <code>0.1</code>.}}
{{MatParam|$MinLight|normal|Minimum amount of light received. Default <code>0.1</code>.}}
{{MatParam|$MaxLight|normal|Maximum amount of light received. Default <code>0.3</code>.}}
{{MatParam|$MaxLight|normal|Maximum amount of light received. Default <code>0.3</code>.}}

Revision as of 11:49, 13 January 2024

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

$basetexture $bumpmap $vertexcolor $MinLight $MaxLight $nocull

See also