Cable: Difference between revisions
Jump to navigation
Jump to search

No edit summary |
No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{languageBar}} | ||
{{this is a|pixel shader|name=Cable}} It is used for [[Cables and Ropes|ropes]] such as those created by the | {{this is a|pixel shader|name=Cable}} It is used for [[Cables and Ropes|ropes]] such as those created by the {{ent|keyframe_rope|alt=keyframe_rope/move_rope}} entities. | ||
==Parameters== | ==Parameters== | ||
{{ | {{MatParamDef|$basetexture|texture|The [[diffuse]] texture for the rope.<br>Should be very small, usually 16x16 to 64x64.}} | ||
{{ | {{MatParamDef|$bumpmap|texture|Normal map for the rope.<br>Most of the vanilla materials use {{code|cable/cablenormalmap}}.}} | ||
{{ | {{MatParamDef|$vertexcolor|bool|Enables vertex coloring, allowing for more accurate lighting.}} | ||
{{ | {{MatParamDef|$MinLight|normal|Minimum amount of light received. Default <code>0.1</code>.}} | ||
{{ | {{MatParamDef|$MaxLight|normal|Maximum amount of light received. Default <code>0.3</code>.}} | ||
{{ | {{MatParamDef|$nocull|bool|Disables backface culling. Default <code>1</code>.}} | ||
==See | ==See also== | ||
*[[SplineRope]] | * [[SplineRope]] | ||
*[[Cables and Ropes]] | * [[Cables and Ropes]] |
Latest revision as of 11:47, 23 August 2025


Cable
is a Pixel shader available in all Source games. It is used for ropes such as those created by the keyframe_rope/move_rope entities.
Parameters
The diffuse texture for the rope.
Should be very small, usually 16x16 to 64x64.
Should be very small, usually 16x16 to 64x64.
Enables vertex coloring, allowing for more accurate lighting.