Garry's Mod Wiki

Garry's Mod Wiki

  render.SetColorMaterial()

Description

Sets the current drawing material to "color".

The material is defined as:

"UnlitGeneric" { "$basetexture" "color/white" "$model" 1 "$translucent" 1 "$vertexalpha" 1 "$vertexcolor" 1 }

Example

Equivalent of this function. Internally, the material used is cached so it is not created every frame like the code below implies.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...