Garry's Mod Wiki

render.SetMaterial

  render.SetMaterial( IMaterial mat )

Description

Sets the material to be used in any upcoming render operation using the render.

Not to be confused with surface.SetMaterial.

Arguments

1 IMaterial mat
The material to be used.