render.GetSurfaceColor

From Garry's Mod
Jump to: navigation, search
 render.GetSurfaceColor( )

Contents

Description

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

Arguments

Vector startPos

The start position to trace from.

Arguments

Vector endPos

The end position of the trace.

Returns

Vector

color
Personal tools
Navigation