render.SetMaterial

From Garry's Mod
Jump to: navigation, search
 render.SetMaterial( )

Description

Sets the material to be used in any upcoming render operation using the render library.

Not to be confused with surface.SetMaterial.

NOTE

This is a rendering function that requires a 3D rendering context.
This means that it will only work in hooks with a 3D rendering context.

NOTE

This is a rendering function that requires a 2D rendering context.
This means that it will only work in hooks with a 2D rendering context.

Arguments

IMaterial mat

The material to be used.
Personal tools
Navigation