Garry's Mod Wiki

Revision Difference

render.DrawBeam#561189

<function name="DrawBeam" parent="render" type="libraryfunc"> <description> Draws textured beam. Draws a textured line made out of a billboarded quad between two points. ⤶ For more detailed information, including usage examples, see the [Beams Rendering Reference](https://wiki.facepunch.com/gmod/Beam_Rendering)⤶ <rendercontext hook="false" type="3D"></rendercontext> </description> <realm>Client</realm> <args> <arg name="startPos" type="Vector">Beam start position.</arg> <arg name="endPos" type="Vector">Beam end position.</arg> <arg name="width" type="number">The width of the beam.</arg> <arg name="textureStart" type="number">The start coordinate of the texture used.</arg> <arg name="textureEnd" type="number">The end coordinate of the texture used.</arg> <arg name="color" type="table" default="Color( 255, 255, 255 )">The color to be used. Uses the <page>Color</page>.</arg> <arg name="startPos" type="Vector">The Beam's start position.</arg> <arg name="endPos" type="Vector">The Beam's end position.</arg> <arg name="width" type="number">The width of the Beam.</arg> <arg name="textureStart" type="number">The starting coordinate of the Beam's texture.</arg> <arg name="textureEnd" type="number">The end coordinate of the Beam's texture.</arg> <arg name="color" type="Color" default="Color( 255, 255, 255 )">What <page>Color</page> to tint the Beam.</arg> </args> </function>