Cable: Difference between revisions
Jump to navigation
Jump to search

SirYodaJedi (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) 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 [[diffuse]] texture for the rope.<br>Should be very small, usually 16x16 to 64x64.}} | ||
{{MatParam|$bumpmap|texture| | {{MatParam|$bumpmap|texture|Normal map for the rope.<br>Most of the vanilla materials use {{code|cable/cablenormalmap}}.}} | ||
{{MatParam|$vertexcolor|bool| | {{MatParam|$vertexcolor|bool|Enables vertex coloring, allowing for more accurate lighting.}} | ||
{{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>.}} | ||
{{MatParam|$nocull|bool|Disables | {{MatParam|$nocull|bool|Disables backface culling. Default <code>1</code>.}} | ||
==See also== | ==See also== | ||
*[[SplineRope]] | *[[SplineRope]] | ||
*[[Cables and Ropes]] | *[[Cables and Ropes]] |
Revision as of 10:01, 14 January 2024


Cable
is a Pixel shader available in all 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