Cable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Beginning documentation of the Cable shader)
 
(Changed to use shader and MatParam templates, added see also section)
Line 1: Line 1:
'''<code>Cable</code>''' is the shader used for [[Cables and Ropes|ropes]] such as those created by the <code>[[keyframe_rope]]</code> and <code>[[move_rope]]</code> entities.
{{shader|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==
;<code>$basetexture <[[texture]]></code>
{{MatParam|[[$basetexture]]|texture|The texture for the rope. Should be very small, usually 16x16 to 64x64.}}
: 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>.}}
;<code>[[$bumpmap]] <texture></code>
{{MatParam|[[$vertexcolor]]|bool|{{Todo|See [[$vertexcolor]]. Default <code>1</code>.}}}}
: Bumpmap for the rope. Default <code>cable/cablenormalmap</code>.
{{MatParam|$MinLight|normal|Minimum amount of light received. Default <code>0.1</code>.}}
;<code>[[$vertexcolor]] <[[bool]]></code>
{{MatParam|$MaxLight|normal|Maximum amount of light received. Default <code>0.3</code>.}}
: {{Todo|See [[$vertexcolor]]. Default <code>1</code>.}}
{{MatParam|$nocull|bool|Disables the backface culling. Default <code>1</code>.}}
;<code>$MinLight <[[normal]]></code>
: Minimum amount of light received. Default <code>0.1</code>.
;<code>$MaxLight <normal></code>
: Maximum amount of light received. Default <code>0.3</code>.
;<code>[[$nocull]] <bool></code>
: Disables the backface culling. Default <code>1</code>.


[[Category:Shaders|C]]
==See Also==
*[[SplineRope]]
*[[Cables and Ropes]]

Revision as of 15:15, 6 June 2019

Shader-ball.png Cable It is used for ropes such as those created by the keyframe_rope and move_rope entities.

Parameters

[[$basetexture|$basetexture]] [[$bumpmap|$bumpmap]] [[$vertexcolor|$vertexcolor]] $MinLight $MaxLight $nocull

See Also