Garry's Mod Wiki


  render.ModelMaterialOverride( IMaterial material )


Forces all future draw operations to use a specific IMaterial.

Because this is independent of a specific Entity, it can be used to change materials on static models that are part of maps.


1 IMaterial material
The IMaterial that will be used for all upcoming draw operations, or nil to stop overriding.