Garry's Mod Wiki

Revision Difference

render.SetColorMaterial#515822

<function name="SetColorMaterial" parent="render" type="libraryfunc"> <description> Sets the current drawing material to "color". The material is defined as: ``` "UnlitGeneric" ```⤶ ⤶ {⤶ ```⤶ ⤶ "$basetexture" "color/white"⤶ {⤶ "$basetexture" "color/white"⤶ "$model" 1 "$translucent" 1 "$vertexalpha" 1 "$vertexcolor" 1 }⤶ ``` }⤶ </description>⤶ </description>⤶ <realm>Client</realm> <file line="89-93">lua/includes/extensions/client/render.lua</file> </function> <example> <description>Equivalent of this function</description> <code>render.SetMaterial( Material( "color" ) )</code> </example>