Garry's Mod Wiki

surface.SetMaterial

surface.SetMaterial( IMaterial material )

Description

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

Arguments

1 IMaterial material
The material to be used.

Page Links


Special Pages


Wikis

?

Render Time: 30ms

Session 0
DB GetPage 4
Generate Html 4
SaveChanges 8
Render Body 0
Render Sidebar 12