Garry's Mod Wiki

Revision Difference

render.SetMaterial#547124

<function name="SetMaterial" parent="render" type="libraryfunc"> <description> Sets the material to be used in any upcoming render operation using the <page>render</page>. Not to be confused with <page>surface.SetMaterial</page>. ⤶ <rendercontext hook="false" type="3D"></rendercontext>⤶ <rendercontext hook="false" type="2D"></rendercontext>⤶ </description> <realm>Client</realm> <args> <arg name="mat" type="IMaterial">The material to be used.</arg> </args> </function>