Garry's Mod Wiki

render.SetMaterial

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.

This is a rendering function that requires a 3d rendering context.

This means that it will only work in 3d Rendering Hooks.

This is a rendering function that requires a 2d rendering context.

This means that it will only work in 2d Rendering Hooks.

Arguments

1 IMaterial mat
The material to be used.

Special Pages


Wikis

?

Render Time: 63ms

DB GetPage 39
Generate Html 4
SaveChanges (1) 10
Render Body 0
Render Sidebar 8