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.

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.

Page Links


Special Pages


Wikis

?

Render Time: 33ms

DB GetPage 5
Generate Html 5
SaveChanges (1) 16
Render Body 0
Render Sidebar 5