Garry's Mod Wiki

Revision Difference

render.GetSurfaceColor#513072

<function name="GetSurfaceColor" parent="render" type="libraryfunc">⤶ <description>Performs a render trace and returns the color of the surface hit, this uses a low res version of the texture.</description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="startPos" type="Vector">The start position to trace from.</arg>⤶ <arg name="endPos" type="Vector">The end position of the trace.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="Vector">color</ret>⤶ </rets>⤶ </function>⤶ ⤶