Garry's Mod Wiki

Revision Difference

render.SetMaterial#513031

<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 hook="false" type="2D"/>⤶ </description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="mat" type="IMaterial">The material to be used.</arg>⤶ </args>⤶ </function>⤶ ⤶