Garry's Mod Wiki

IMaterial:GetTexture

  ITexture IMaterial:GetTexture( string param )

Description

Returns an ITexture based on the passed shader parameter.

Arguments

1 string param
The shader parameter to retrieve. This should normally be $basetexture.

Returns

1 ITexture
The value of the shader parameter. Returns nothing if the param doesn't exist.