Garry's Mod Wiki

render.GetSurfaceColor

render.GetSurfaceColor

  Vector render.GetSurfaceColor( Vector startPos, Vector endPos )

Description

Performs a render trace and returns the color of the surface hit, this uses a low res version of the texture.

Arguments

1 Vector startPos
The start position to trace from.
2 Vector endPos
The end position of the trace.

Returns

1 Vector
color

Special Pages


Wikis

?

Render Time: 41ms

DB GetPage 23
Generate Html 4
SaveChanges (1) 5
Render Body 0
Render Sidebar 7