Garry's Mod Wiki


surface.SetMaterial( IMaterial material )


Sets the material to be used in all upcoming draw operations using the surface library.

Not to be confused with render.SetMaterial.

See also surface.SetTexture.

Material function calls are expensive to be done inside this function or inside rendering context, you should be caching the results of Material calls


1 IMaterial material
The material to be used.

Page Links

Special Pages



Render Time: 33ms

DB GetPage 5
Generate Html 6
SaveChanges (1) 8
Render Body 0
Render Sidebar 12